summaryrefslogtreecommitdiff
path: root/parts/users/seth/system.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-10-01 10:41:09 -0400
committerseth <[email protected]>2023-10-01 10:49:46 -0400
commita8630322f77dbb7be4810099a42352b9278996a1 (patch)
treeb8df66a7e5b9d8c31b27a4a9b357ff7e4b9d418f /parts/users/seth/system.nix
parent30f55e656d344e017f66ecbae8eb27cf13ba53bb (diff)
treewide!: flatten to parts/ layout
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;
+ };
+}