add mainUser alias
This commit is contained in:
parent
e56ecd5c9c
commit
fdab241a48
3 changed files with 10 additions and 12 deletions
|
@ -12,6 +12,7 @@ in {
|
|||
imports = [
|
||||
../programs
|
||||
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||
(lib.mkAliasOptionModule ["mainUser"] ["users" "users" username])
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -184,17 +185,14 @@ in {
|
|||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users = {
|
||||
${username} = {
|
||||
mainUser = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = ["networkmanager" "wheel" "video" "libvirtd"];
|
||||
hashedPasswordFile = config.age.secrets.userPassword.path;
|
||||
};
|
||||
|
||||
root.hashedPasswordFile = config.age.secrets.rootPassword.path;
|
||||
};
|
||||
users.users.root.hashedPasswordFile = config.age.secrets.rootPassword.path;
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
iosevka
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
programs.light.enable = true;
|
||||
|
||||
users.users.leo.packages = with pkgs; [
|
||||
mainUser.packages = with pkgs; [
|
||||
networkmanagerapplet
|
||||
protonvpn-gui
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue