update docker and virtualisation

This commit is contained in:
dim 2024-12-30 14:38:09 +07:00
parent 2739f18c63
commit 1187d9e234
2 changed files with 2 additions and 9 deletions

View File

@ -12,15 +12,7 @@ in {
uid = userId; uid = userId;
isNormalUser = true; isNormalUser = true;
description = "${username} account"; description = "${username} account";
extraGroups = [ extraGroups = [ "networkmanager" "wheel" "audio" "video" "input" ];
"networkmanager"
"wheel"
"audio"
"video"
"input"
"docker"
"libvirtd"
];
}; };
}; };
} }

View File

@ -3,4 +3,5 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
environment.systemPackages = with pkgs; [ virtiofsd ]; environment.systemPackages = with pkgs; [ virtiofsd ];
users.users."${config.var.username}".extraGroups = [ "docker" "libvirtd" ];
} }