This commit is contained in:
WinterEkisha committed 2026-11-03 18:31:22 -08:00
1 parent 6e7c745bf1
commit 029a2b6b89
2 files changed
+37

No files matched your search

+35
View File
@@ -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 = {};
};
}