diff options
| author | seth <[email protected]> | 2024-02-09 16:20:57 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-09 16:20:57 -0500 |
| commit | a5c6d7e075affe0ca95bd8e64fce9c387efc382b (patch) | |
| tree | 090db4dd6c07906d46013432dca668bccb2e3ad0 /users/seth/system.nix | |
| parent | ed19b2e58435bb6db6a10758b025821256b1af1f (diff) | |
seth: modularize user setup
Diffstat (limited to 'users/seth/system.nix')
| -rw-r--r-- | users/seth/system.nix | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/users/seth/system.nix b/users/seth/system.nix deleted file mode 100644 index 4feb807..0000000 --- a/users/seth/system.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - cfg = config.traits.users.seth; -in { - options.traits.users.seth = { - enable = lib.mkEnableOption "Seth's user & home configuration"; - }; - - config = lib.mkIf cfg.enable { - users.users.seth = - { - shell = pkgs.fish; - home = lib.mkDefault ( - if pkgs.stdenv.isDarwin - then "/Users/seth" - else "/home/seth" - ); - } - // lib.optionalAttrs pkgs.stdenv.isLinux { - extraGroups = ["wheel"]; - isNormalUser = true; - }; - - programs.fish.enable = lib.mkDefault true; - - home-manager.users.seth = { - imports = [./.]; - }; - }; -} |
