diff options
Diffstat (limited to 'modules/shared/users/seth.nix')
| -rw-r--r-- | modules/shared/users/seth.nix | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/modules/shared/users/seth.nix b/modules/shared/users/seth.nix index 89203c1..796171d 100644 --- a/modules/shared/users/seth.nix +++ b/modules/shared/users/seth.nix @@ -17,32 +17,30 @@ in enable = lib.mkEnableOption "Seth's user & home configurations"; }; - config = lib.mkMerge [ - (lib.mkIf cfg.enable { - users.users.seth.shell = pkgs.fish; + config = lib.mkIf cfg.enable ( + lib.mkMerge [ + { + users.users.seth.shell = pkgs.fish; - programs.fish.enable = true; + programs.fish.enable = true; - home-manager.users.seth = { - imports = [ (inputs.self + "/users/seth") ]; - seth = { - enable = true; - programs.fish.enable = true; + home-manager.users.seth = { + imports = [ (inputs.self + "/users/seth") ]; }; - }; - }) - - (lib.mkIf (cfg.enable && isDarwin) { - users.users.seth = { - home = lib.mkDefault "/Users/seth"; - }; - }) - - (lib.mkIf (cfg.enable && isLinux) { - users.users.seth = { - extraGroups = [ "wheel" ]; - isNormalUser = true; - }; - }) - ]; + } + + (lib.mkIf isDarwin { + users.users.seth = { + home = lib.mkDefault "/Users/seth"; + }; + }) + + (lib.mkIf isLinux { + users.users.seth = { + extraGroups = [ "wheel" ]; + isNormalUser = true; + }; + }) + ] + ); } |
