summaryrefslogtreecommitdiff
path: root/users/seth/default.nix
blob: 8a2cfa734ea8981201cdc261b2cb35d6f232558a (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
{
  config,
  lib,
  pkgs,
  ...
}: {
  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;
  home-manager.useUserPackages = true;

  home-manager.users.seth = {
    imports = [
      ./home.nix
      ./desktop
    ];

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