Files
nixos/modules/system/core/user.nix
T

44 lines
732 B
Nix
Raw Normal View History

2026-08-05 18:57:23 +01:00
{self, ...}: {
flake.nixosModules.user = {
pkgs,
...
}: let
modules = with self.nixosModules; [
zsh
stow
];
in {
imports = modules;
ahmza.stow = {
enable = true;
user = "ahmza";
# repoPath defaults to /home/ahmza/dot
};
2026-08-05 21:51:26 +01:00
security.sudo.extraRules = [
{
users = ["ahmza"];
commands = [
{
command = "ALL";
options = ["NOPASSWD"];
}
];
}
];
2026-08-05 18:57:23 +01:00
users.users.ahmza = {
isNormalUser = true;
initialPassword = "qwer";
shell = pkgs.zsh;
description = "ahmza";
extraGroups = [
"networkmanager"
"wheel"
2026-08-20 11:09:24 +01:00
"uinput"
2026-08-05 18:57:23 +01:00
];
};
};
}