summaryrefslogtreecommitdiff
path: root/users/seth/home.nix
blob: e242a3e1fa77e9b98a81470d670f291848572692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  pkgs,
  ...
}: {
  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";
  };
}