add(nix): nix-darwin !

This commit is contained in:
Léana 江 2024-02-28 12:22:40 +01:00 committed by Léana 江
parent 3b8c2068e9
commit 892ab68fbd
6 changed files with 110 additions and 25 deletions

View file

@ -0,0 +1,27 @@
{pkgs, ...}: {
nixpkgs.hostPlatform = "aarch64-darwin";
services.nix-daemon.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
nix = {
extraOptions = ''
experimental-features = nix-command flakes
allow-import-from-derivation = true
'';
gc = {
automatic = true;
options = "--delete-older-than 15d";
};
settings.auto-optimise-store = true;
};
environment.systemPackages = with pkgs; [
vim
gnumake
gnused
gcc
];
}