aboutsummaryrefslogblamecommitdiff
path: root/machines/darwin/aarch64-darwin/HQ-KWNY2VH41P.nix
blob: 19dbeb2c45e5b8aeb4e61f2001a20ec82e98edb7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


            


     
             
                                

    


                                        




                                     






                                                                            





                                                    

                                     


                                 
 
{
  adminUser,
  pkgs,
  ...
}:
{
  imports = [
    ../../../profiles/darwin.nix
  ];

  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
  '';

  home-manager.users.${adminUser.name} = {
    home.stateVersion = "23.05";
    home.username = "${adminUser.name}";
    home.homeDirectory = "/Users/${adminUser.name}";
    imports = [
      ../../../home/profiles/mac.nix
      ../../../home/profiles/work.nix
    ];
    inherit (adminUser) userinfo;
  };
}