mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
19 lines
431 B
Nix
19 lines
431 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";
|
|
shell = if config.programs.zsh.enable
|
|
then pkgs.zsh
|
|
else pkgs.bash;
|
|
};
|
|
};
|
|
}
|