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