aboutsummaryrefslogtreecommitdiff
path: root/machines/darwin/aarch64-darwin/HQ-KWNY2VH41P/default.nix
blob: 766edf1c8036809c5db828e375c4f8ccb7ace52e (plain) (blame)
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
{
  adminUser,
  pkgs,
  self,
  ...
}:
{
  imports = [
    {
      home-manager.users.${adminUser.name} = {
        home.homeDirectory = "/Users/${adminUser.name}";
        imports = [
          ./home.nix
          { home.stateVersion = "23.05"; }
        ];
        inherit (adminUser) userinfo;
        programs.git.userEmail = "fcuny@roblox.com";
      };
    }
    "${self}/profiles/programs/home-manager.nix"
    "${self}/profiles/desktop/fonts.nix"
  ];

  system.primaryUser = adminUser.name;

  users = {
    users.${adminUser.name} = {
      home = "/Users/${adminUser.name}";
    };
  };

  environment.shells = [ pkgs.fish ];

  programs.fish.shellInit = ''
    # Nix
    if test -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
      source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
    end
    # End Nix
  '';
}