mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
16 lines
463 B
Nix
16 lines
463 B
Nix
{ pkgs, lib, config, ... }: {
|
|
options.mods.user.name = lib.mkOption {
|
|
default = "muon";
|
|
description = "username of the main system user";
|
|
};
|
|
|
|
config = {
|
|
users.users.${config.mods.user.name} = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
initialPassword = "changeme";
|
|
hashedPasswordFile = config.sops.secrets.muon-password.path;
|
|
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;
|
|
};
|
|
};
|
|
}
|