From ee75c17c0aae62beb503c9e270dfedd0a6f04fd8 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Tue, 3 Dec 2024 18:48:57 +0100 Subject: [PATCH] feat: add more virtualisation tools --- SwarselSystems.org | 23 +++++++++++++++++++++-- profiles/optional/home/work.nix | 12 ++++++++++-- profiles/optional/nixos/work.nix | 19 ++++++++++++++++++- 3 files changed, 49 insertions(+), 5 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index d74ed36..7f5afd4 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -7180,7 +7180,24 @@ Options that I need specifically at work. There are more options at [[#h:f0b2ea9 }; }; - virtualisation.docker.enable = true; + virtualisation = { + docker.enable = true; + libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + packages = [(pkgs.OVMF.override { + secureBoot = true; + tpmSupport = true; + }).fd]; + }; + }; + }; + }; environment.systemPackages = with pkgs; [ # (python39.withPackages (ps: with ps; [ @@ -9693,6 +9710,8 @@ The rest of the settings is at [[#h:bbf2ecb6-c8ff-4462-b5d5-d45b28604ddf][work]] docker postman rclone + awscli2 + libguestfs-with-appliance ]; programs = { @@ -9812,7 +9831,7 @@ The rest of the settings is at [[#h:bbf2ecb6-c8ff-4462-b5d5-d45b28604ddf][work]] inherit terminal categories icon; }; }; - + }; } diff --git a/profiles/optional/home/work.nix b/profiles/optional/home/work.nix index 06569e9..07bfbe4 100644 --- a/profiles/optional/home/work.nix +++ b/profiles/optional/home/work.nix @@ -8,6 +8,8 @@ docker postman rclone + awscli2 + libguestfs-with-appliance ]; programs = { @@ -384,7 +386,13 @@ }; }; - xdg.desktopEntries = + xdg = { + mimeApps = { + defaultApplications = { + "x-scheme-handler/msteams" = [ "teams-for-linux.desktop"] ; + }; + }; + desktopEntries = let terminal = false; categories = [ "Application" ]; @@ -419,6 +427,6 @@ inherit terminal categories icon; }; }; - + }; } diff --git a/profiles/optional/nixos/work.nix b/profiles/optional/nixos/work.nix index 711440e..8bb0022 100644 --- a/profiles/optional/nixos/work.nix +++ b/profiles/optional/nixos/work.nix @@ -42,7 +42,24 @@ }; }; - virtualisation.docker.enable = true; + virtualisation = { + docker.enable = true; + libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + packages = [(pkgs.OVMF.override { + secureBoot = true; + tpmSupport = true; + }).fd]; + }; + }; + }; + }; environment.systemPackages = with pkgs; [ # (python39.withPackages (ps: with ps; [