minor username formatting cleanup

This commit is contained in:
jacekpoz 2024-07-22 21:54:42 +02:00
parent 8d386a77a3
commit 4439387048
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,9 @@
{
config,
...
}: {
}: let
inherit (config.myOptions.other.system) username;
in {
virtualisation = {
libvirtd = {
enable = true;
@ -16,7 +18,7 @@
networking.firewall.trustedInterfaces = [ "virbr0" ];
users.users.${config.myOptions.other.system.username} = {
users.users.${username} = {
extraGroups = [ "libvirtd" ];
};
}

View file

@ -28,5 +28,7 @@ in {
services.NetworkManager-wait-online.wantedBy = lib.mkForce []; # default is [ "network-online.target" ]
};
users.users.${username}.extraGroups = [ "networkmanager" ];
users.users.${username} = {
extraGroups = [ "networkmanager" ];
};
}