2023-10-30 23:04:56 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-04-02 16:03:21 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
# Enable flakes and nix-command
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixVersions.stable;
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
2023-10-30 23:04:56 +00:00
|
|
|
extraOptions = lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
|
|
|
extra-platforms = x86_64-darwin aarch64-darwin
|
|
|
|
'';
|
2023-04-02 16:03:21 +01:00
|
|
|
};
|
|
|
|
services.nix-daemon.enable = true;
|
|
|
|
}
|