aboutsummaryrefslogtreecommitdiff
path: root/machines/darwin/aarch64-darwin/mba-m2.nix
blob: 08a27c140d584870d3bfd8f51aa13d12c6df722e (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
42
43
44
45
46
47
48
49
50
51
52
{ pkgs, ... }:
{
  age.secrets = {
    ssh-remote-builder.file = ../../../secrets/ssh-remote-builder.age;
  };

  imports = [
    ../../../profiles/darwin.nix
    ../../../profiles/home-manager.nix
    ../../../profiles/remote-builder.nix
  ];

  # https://github.com/nix-darwin/nix-darwin/issues/1339
  ids.gids.nixbld = 30000;

  networking.hostName = "mba-m2";

  users.users.fcuny = {
    home = "/Users/fcuny";
    shell = pkgs.fish;
  };

  environment.shells = [ pkgs.fish ];

  programs.fish.enable = true;
  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.fcuny = {
    home.stateVersion = "23.05";
    home.username = "fcuny";
    home.homeDirectory = "/Users/fcuny";
    home.packages = with pkgs; [
      element-desktop
      hledger
    ];
    imports = [
      ../../../home/profiles/mac.nix
      ../../../home/profiles/media.nix
      ../../../home/profiles/security.nix
    ];
    userinfo = {
      email = "franck@fcuny.net";
      fullName = "Franck Cuny";
    };
  };
}