diff options
Diffstat (limited to 'modules/hosts')
| -rw-r--r-- | modules/hosts/desktop/default.nix | 19 | ||||
| -rw-r--r-- | modules/hosts/system/users.nix | 19 |
2 files changed, 12 insertions, 26 deletions
diff --git a/modules/hosts/desktop/default.nix b/modules/hosts/desktop/default.nix index 137b68c..7d7f3ae 100644 --- a/modules/hosts/desktop/default.nix +++ b/modules/hosts/desktop/default.nix @@ -1,14 +1,17 @@ -{ ... }: +{ useHomeManager ? true, ... }: { imports = [ - #./sway - #./dunst.nix - #./waybar.nix - #./gnome + # NixOS-only modules (no home-manager) ./cinnamon + ./gnome ./kde - #./labwc - #./hyprland - ]; + ] ++ (if useHomeManager then [ + # Modules that require home-manager + ./hyprland + ./labwc + ./sway + ./dunst.nix + ./waybar.nix + ] else [ ]); } diff --git a/modules/hosts/system/users.nix b/modules/hosts/system/users.nix index 5ecdfba..9550e8d 100644 --- a/modules/hosts/system/users.nix +++ b/modules/hosts/system/users.nix @@ -1,22 +1,5 @@ -{ - config, - username, - pkgs, - lib, - ... -}: +{ ... }: { - users.users."${username}" = { - isNormalUser = true; - extraGroups = [ - "wheel" - "video" - "input" - (lib.mkIf config.networking.networkmanager.enable "networkmanager") - ]; - shell = pkgs.zsh; - ignoreShellProgramCheck = true; - }; security.sudo.wheelNeedsPassword = false; } |
