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

View file

@ -9,5 +9,5 @@
hm.wayland.windowManager.hyprland.settings.monitor = lib.mkForce ["DP-1,1920x1200@60,0x0,1" "HDMI-A-1,1440x900@60,1920x300,1"];
users.users.leo.packages = with pkgs; [ryujinx];
mainUser.packages = with pkgs; [ryujinx];
}

View file

@ -17,7 +17,7 @@
programs.light.enable = true;
users.users.leo.packages = with pkgs; [
mainUser.packages = with pkgs; [
networkmanagerapplet
protonvpn-gui
];