blob: f3957c75c03047547ebf5b4e62a5487759bec0fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};
}
|