virt only on North
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, host, ... }:
|
||||
{
|
||||
config = pkgs.lib.mkIf (host == "NxNORTH") {
|
||||
home.packages = with pkgs; [
|
||||
virt-manager
|
||||
];
|
||||
@@ -11,4 +12,5 @@
|
||||
uris = [ "qemu:///system" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
{ config, pkgs, user, ... }:
|
||||
{ config, pkgs, lib, user, host, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf (host == "NxNORTH") {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virtiofsd
|
||||
];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
users.users."${user}".extraGroups = [ "libvirtd" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user