nix-managed-macbook/nix.nix

41 lines
976 B
Nix
Raw Normal View History

2024-01-31 19:23:23 +05:30
{ config, pkgs, inputs, ... }: {
2023-11-25 16:13:20 +05:30
services.nix-daemon.enable = true;
nix = {
package = pkgs.nixFlakes;
registry.nixpkgs.flake = inputs.nixpkgs;
2024-04-01 23:33:42 +05:30
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
2023-11-25 16:13:20 +05:30
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
gc = {
automatic = true;
2024-09-07 12:38:30 +05:30
interval = {
Hour = 18;
Minute = 15;
};
options = "-d --delete-older-than 7d";
2023-11-25 16:13:20 +05:30
};
settings = {
auto-optimise-store = true;
2024-08-25 15:27:31 +05:30
connect-timeout = 60;
download-attempts = 10;
2023-11-25 16:13:20 +05:30
cores = 2;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
fallback = true;
keep-outputs = true;
2024-08-25 15:27:31 +05:30
keep-going = true;
2023-11-25 16:13:20 +05:30
log-lines = 25;
max-free = 1000000000;
max-jobs = 6;
min-free = 128000000;
warn-dirty = false;
2024-01-31 19:23:23 +05:30
trusted-users = [ "@admin" ];
2023-11-25 16:13:20 +05:30
};
};
nixpkgs = {
hostPlatform = "x86_64-darwin";
config.allowUnfree = true;
2022-09-27 13:08:52 +05:30
};
}