home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 4a424dcdf17d1db6f26d2874ffa544f472769710
parent 6b9141efcf071285f43764929a7adc45a6455161
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon,  2 Jan 2023 12:03:40 +0100

systems: update sakhalin and shikoku to use new libvirt module

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hosts/sakhalin.nix | 2+-
Msystems/hosts/shikoku.nix | 2+-
Msystems/modules/virtualisation/libvirt.nix | 1+
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/systems/hosts/sakhalin.nix b/systems/hosts/sakhalin.nix @@ -68,13 +68,13 @@ in avahi.enable = true; ssh.enable = true; }; + virtualisation.libvirt = { enable = true; nested = true; listenTCP = true; }; }; profiles = { bind.enable = true; home = true; git.enable = true; - virtualization = { enable = true; nested = true; listenTCP = true; }; }; fileSystems."/export/gaia" = { device = "/mnt/gaia"; options = [ "bind" ]; }; diff --git a/systems/hosts/shikoku.nix b/systems/hosts/shikoku.nix @@ -93,6 +93,7 @@ in avahi.enable = true; ssh.enable = true; }; + virtualisation.libvirt = { enable = true; nested = true; listenTCP = true; }; }; # Single node k3s @@ -111,7 +112,6 @@ in dev.enable = lib.mkForce false; desktop.enable = lib.mkForce false; docker.enable = true; - virtualization = { enable = true; nested = true; listenTCP = true; }; }; services = { netdata.enable = true; diff --git a/systems/modules/virtualisation/libvirt.nix b/systems/modules/virtualisation/libvirt.nix @@ -13,6 +13,7 @@ in config = mkIf cfg.enable (mkMerge [ { virtualisation.libvirtd.enable = true; + security.polkit.enable = true; # 22.11: libvirtd requires poltkit to be enabled environment.systemPackages = with pkgs; [ qemu vde2 libosinfo ]; } (mkIf config.modules.desktop.enable {