refactor
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
username = "Winter";
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in {
|
||||
users.users.Winter= {
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ifTheyExist [
|
||||
"audio"
|
||||
@@ -41,9 +42,10 @@ in {
|
||||
#};
|
||||
|
||||
# TODO: ensure correct paths
|
||||
home-manager.users.Winter = import ../../../../home/Winter/${config.networking.hostName}.nix;
|
||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||
|
||||
security.pam.services = {
|
||||
swaylock = {};
|
||||
${username}.enableGnomeKeyring = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user