mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: lazy way to add groups
This commit is contained in:
parent
2b3fb09642
commit
c58013738a
9 changed files with 17 additions and 79 deletions
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue