add mainUser alias

This commit is contained in:
uku 2023-11-20 02:01:09 +01:00
parent e56ecd5c9c
commit fdab241a48
Signed by: uku
GPG key ID: 7D01D7B105E77166
3 changed files with 10 additions and 12 deletions

View file

@ -12,6 +12,7 @@ in {
imports = [
../programs
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
(lib.mkAliasOptionModule ["mainUser"] ["users" "users" username])
];
boot = {
@ -184,18 +185,15 @@ in {
virtualisation.libvirtd.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users = {
${username} = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = ["networkmanager" "wheel" "video" "libvirtd"];
hashedPasswordFile = config.age.secrets.userPassword.path;
};
root.hashedPasswordFile = config.age.secrets.rootPassword.path;
mainUser = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = ["networkmanager" "wheel" "video" "libvirtd"];
hashedPasswordFile = config.age.secrets.userPassword.path;
};
users.users.root.hashedPasswordFile = config.age.secrets.rootPassword.path;
fonts.packages = with pkgs; [
iosevka
jetbrains-mono