nix: lazy way to add groups

This commit is contained in:
js0ny 2025-10-29 02:21:42 +00:00
parent 2b3fb09642
commit c58013738a
9 changed files with 17 additions and 79 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: {
environment.systemPackages = with pkgs; [
virt-manager
dnsmasq
@ -13,7 +17,7 @@
swtpm.enable = true;
};
};
users.users.js0ny = {
users.users.${config.var.username} = {
extraGroups = ["libvirtd"];
};
networking.firewall.trustedInterfaces = ["virbr0"];