Wyatt J. Miller e6e1336487
Some checks failed
update-flake-lock / update_lockfile (push) Failing after 24m24s
changes to user seciurity
2025-04-16 02:49:06 -04:00

36 lines
613 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
lib,
pkgs,
userName,
hostname,
...
} @ args: {
imports = [
../security/sudo.nix
];
networking.hostName = hostname;
# Don't forget to set a password with passwd!
users.users."${userName}" = lib.mkMerge [
{
home =
if pkgs.stdenv.isDarwin
then "/Users/${userName}"
else "/home/${userName}";
description = userName;
}
(lib.mkIf (pkgs.stdenv.isLinux) {
group = "${userName}";
isNormalUser = true;
})
];
security.sudo.needsPassword = false;
users.groups.wyatt = {};
nix.settings.trusted-users = [userName];
}