nix-managed-macbook/nix.nix

36 lines
874 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;
interval.Day = 1;
options = "--delete-older-than 7d";
};
settings = {
auto-optimise-store = true;
2024-06-01 15:25:24 +05:30
connect-timeout = 30;
2023-11-25 16:13:20 +05:30
cores = 2;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
fallback = true;
keep-outputs = true;
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
};
}