virt only on North
This commit is contained in:
@@ -1,14 +1,16 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, host, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config = pkgs.lib.mkIf (host == "NxNORTH") {
|
||||||
virt-manager
|
home.packages = with pkgs; [
|
||||||
];
|
virt-manager
|
||||||
|
];
|
||||||
|
|
||||||
# programs.virt-manager.enable = true; # needs this in virtualization.nix
|
# programs.virt-manager.enable = true; # needs this in virtualization.nix
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
autoconnect = [ "qemu:///system" ];
|
autoconnect = [ "qemu:///system" ];
|
||||||
uris = [ "qemu:///system" ];
|
uris = [ "qemu:///system" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{ config, pkgs, user, ... }:
|
{ config, pkgs, lib, user, host, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
config = lib.mkIf (host == "NxNORTH") {
|
||||||
virtiofsd
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
virtiofsd
|
||||||
virtualisation.libvirtd.enable = true;
|
];
|
||||||
programs.virt-manager.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
users.users."${user}".extraGroups = [ "libvirtd" ];
|
programs.virt-manager.enable = true;
|
||||||
|
users.users."${user}".extraGroups = [ "libvirtd" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user