move audio to components

This commit is contained in:
Ingolf Wagner 2023-06-01 12:08:59 +02:00
commit 4bee8a47ae
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
7 changed files with 61 additions and 46 deletions
nixos/modules/system

View file

@ -61,23 +61,23 @@ in
users = {
mutableUsers = true;
defaultUserShell = pkgs.zsh;
groups.mainUser.name = cfg.userName;
users.mainUser = {
isNormalUser = true;
name = cfg.userName;
uid = cfg.uid;
home = "/home/${cfg.userName}";
initialPassword = cfg.userName;
extraGroups = [ "wheel" "networkmanager" "transmission" "wireshark" ]
extraGroups = [ "wheel" "networkmanager" "transmission" "wireshark" "audio" "pipewire" ]
++ dockerGroup ++ vboxGroup ++ cfg.extraGroups;
openssh.authorizedKeys.keyFiles = cfg.authorizedKeyFiles;
group = config.users.groups.mainUser.name;
};
groups.mainUser = {
name = cfg.userName;
};
};