summaryrefslogtreecommitdiff
path: root/users/seth/home.nix
blob: c24472b5cac828823c27d729b417d16bf9c735d5 (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
{
  lib,
  pkgs,
  ...
}: {
  imports = [
    ./programs
    ./shell
  ];

  home = let
    username = "seth";
    inherit (pkgs.stdenv) isLinux isDarwin;
    optionalLinuxDarwin = lib.optionalString (isLinux || isDarwin);
  in {
    inherit username;
    homeDirectory = optionalLinuxDarwin (
      if isLinux
      then "/home/${username}"
      else "/Users/${username}"
    );

    stateVersion = "23.11";
  };
}