diff options
Diffstat (limited to 'machines/mba-m2.nix')
| -rw-r--r-- | machines/mba-m2.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/machines/mba-m2.nix b/machines/mba-m2.nix new file mode 100644 index 0000000..398bf6d --- /dev/null +++ b/machines/mba-m2.nix @@ -0,0 +1,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"; + }; + }; +} |
