fritz: add minimal nix-darwin configuration #1364

Merged
JakeHillion merged 1 commits from push-qxyrtkvuxsnt into main 2026-10-02 19:42:36 +01:00
2 changed files with 45 additions and 5 deletions

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
{ nixpkgs, nixpkgs-unstable, pkgs, ... }:
{
config = {
system.stateVersion = 7;
system.primaryUser = "jake";
networking.hostName = "fritz";
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "jake" ];
};
registry = {
nixpkgs.flake = nixpkgs;
nixpkgs-unstable.flake = nixpkgs-unstable;
};
};
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
# macOS 27 denies writes to /etc/pam.d even as root, so nix-darwin can't
# link sudo_local. It manages the file by default, so disable it entirely.
security.pam.services.sudo_local.enable = false;
environment.systemPackages = with pkgs; [
fd
git
htop
jujutsu
mosh
neovim
ripgrep
];
};
}
+5 -5
View File
@@ -156,20 +156,20 @@
in
nixpkgs.lib.genAttrs fqdns mkHost;
darwinConfigurations = {
jakehillion-mba-m2-15 = darwin.lib.darwinSystem {
darwinConfigurations = nixpkgs.lib.genAttrs (builtins.attrNames (builtins.readDir ./darwin)) (hostName:
darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs;
modules = [
./darwin/jakehillion-mba-m2-15/configuration.nix
./darwin/${hostName}/configuration.nix
({ config, ... }: {
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
nixpkgs.overlays = getSystemOverlays "aarch64-darwin" config.nixpkgs.config;
})
];
};
};
});
} // nixpkgs.lib.recursiveUpdate
(nixpkgs.lib.recursiveUpdate