diff --git a/home-modules/virt-manager.nix b/home-modules/virt-manager.nix index ab62466..9c75e75 100644 --- a/home-modules/virt-manager.nix +++ b/home-modules/virt-manager.nix @@ -1,14 +1,16 @@ -{ config, pkgs, ... }: +{ config, pkgs, host, ... }: { - home.packages = with pkgs; [ - virt-manager - ]; + config = pkgs.lib.mkIf (host == "NxNORTH") { + home.packages = with pkgs; [ + virt-manager + ]; - # programs.virt-manager.enable = true; # needs this in virtualization.nix - dconf.settings = { - "org/virt-manager/virt-manager/connections" = { - autoconnect = [ "qemu:///system" ]; - uris = [ "qemu:///system" ]; + # programs.virt-manager.enable = true; # needs this in virtualization.nix + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; + }; }; }; -} \ No newline at end of file +} diff --git a/system-modules/virtualisation.nix b/system-modules/virtualisation.nix index 94af820..6a8e6db 100644 --- a/system-modules/virtualisation.nix +++ b/system-modules/virtualisation.nix @@ -1,10 +1,12 @@ -{ config, pkgs, user, ... }: +{ config, pkgs, lib, user, host, ... }: { - environment.systemPackages = with pkgs; [ - virtiofsd - ]; - virtualisation.libvirtd.enable = true; - programs.virt-manager.enable = true; - users.users."${user}".extraGroups = [ "libvirtd" ]; + config = lib.mkIf (host == "NxNORTH") { + environment.systemPackages = with pkgs; [ + virtiofsd + ]; + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + users.users."${user}".extraGroups = [ "libvirtd" ]; + }; } \ No newline at end of file