fritz: add minimal nix-darwin configuration #1364
No files matched your search
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user