nix-managed-macbook/nix.nix

36 lines
881 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;
nixPath = [{ nixpkgs = inputs.nixpkgs.outPath; }];
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
gc = {
automatic = true;
interval.Day = 1;
options = "--delete-older-than 7d";
};
settings = {
auto-optimise-store = true;
connect-timeout = 5;
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
};
}