summaryrefslogtreecommitdiff
path: root/users/seth/default.nix
blob: f1883188a615103ebdb5c298b0449d30f774a5ed (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
31
32
33
34
35
36
37
38
39
40
41
42
{
  config,
  lib,
  pkgs,
  arkenfox,
  nix-index-database,
  ...
}: {
  users.users.seth = let
    inherit (pkgs.stdenv) isLinux isDarwin;
  in
    lib.recursiveUpdate {
      shell = pkgs.fish;
      home = lib.optionalString (isLinux || isDarwin) (
        if isLinux
        then "/home/seth"
        else "/Users/seth"
      );
    } (lib.optionalAttrs pkgs.stdenv.isLinux {
      extraGroups = lib.optional pkgs.stdenv.isLinux "wheel";
      isNormalUser = true;
      passwordFile = config.age.secrets.sethPassword.path;
    });

  programs.fish.enable = true;

  home-manager = {
    useGlobalPkgs = true;
    useUserPackages = true;
  };

  home-manager.users.seth = {
    imports = [
      ./home.nix
      ./module.nix
      arkenfox.hmModules.arkenfox
      nix-index-database.hmModules.nix-index
    ];

    nixpkgs.overlays = config.nixpkgs.overlays;
  };
}