summaryrefslogtreecommitdiff
path: root/parts/users/seth/system.nix
diff options
context:
space:
mode:
Diffstat (limited to 'parts/users/seth/system.nix')
-rw-r--r--parts/users/seth/system.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/parts/users/seth/system.nix b/parts/users/seth/system.nix
new file mode 100644
index 0000000..f3957c7
--- /dev/null
+++ b/parts/users/seth/system.nix
@@ -0,0 +1,30 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: {
+ users.users.seth = let
+ inherit (pkgs.stdenv.hostPlatform) isLinux isDarwin;
+ in
+ lib.recursiveUpdate
+ {
+ shell = pkgs.fish;
+ home =
+ if isDarwin
+ then "/Users/seth"
+ else "/home/seth";
+ }
+ (lib.optionalAttrs isLinux {
+ extraGroups = ["wheel"];
+ isNormalUser = true;
+ hashedPasswordFile = config.age.secrets.sethPassword.path;
+ });
+
+ programs.fish.enable = true;
+
+ home-manager.users.seth = {
+ imports = [./.];
+ nixpkgs.overlays = config.nixpkgs.overlays;
+ };
+}