add user
This commit is contained in:
1 parent
6e7c745bf1
commit
029a2b6b89
2 files changed
+37
No files matched your search
@@ -29,6 +29,7 @@ in
|
|||||||
|
|
||||||
../common/users/Winter/default.nix
|
../common/users/Winter/default.nix
|
||||||
../common/users/Ekisha/default.nix
|
../common/users/Ekisha/default.nix
|
||||||
|
../common/users/Tester/default.nix
|
||||||
../common/features/DesktopNiri.nix
|
../common/features/DesktopNiri.nix
|
||||||
../common/features/DesktopKDEPlasma.nix
|
../common/features/DesktopKDEPlasma.nix
|
||||||
../common/features/Applications.nix
|
../common/features/Applications.nix
|
||||||
@@ -70,6 +71,7 @@ in
|
|||||||
Winter = import ../../home/Winter/${hostname}.nix;
|
Winter = import ../../home/Winter/${hostname}.nix;
|
||||||
minecraft = import ../../home/Winter/minecraft.nix;
|
minecraft = import ../../home/Winter/minecraft.nix;
|
||||||
Ekisha = import ../../home/Ekisha/${hostname}.nix;
|
Ekisha = import ../../home/Ekisha/${hostname}.nix;
|
||||||
|
Tester = import ../../home/Winter/${hostname}.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
username = "Tester";
|
||||||
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
|
in {
|
||||||
|
users.users.${username} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ifTheyExist [
|
||||||
|
];
|
||||||
|
|
||||||
|
# TODO: use as needed
|
||||||
|
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
||||||
|
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
||||||
|
#packages = [pkgs.home-manager];
|
||||||
|
};
|
||||||
|
|
||||||
|
# unused for now, may add sops later on
|
||||||
|
#sops.secrets = {
|
||||||
|
# gabriel-password = {
|
||||||
|
# sopsFile = ../../secrets.yaml;
|
||||||
|
# neededForUsers = true;
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
# TODO: ensure correct paths
|
||||||
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
|
security.pam.services = {
|
||||||
|
swaylock = {};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user