2022-01-14 13:04:11 +00:00
|
|
|
{ pkgs, ... }: {
|
2022-01-14 13:03:14 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
useSandbox = true;
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
trustedUsers = [ "@wheel" ];
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
|
|
|
dates = [ "weekly" ];
|
|
|
|
};
|
2022-01-21 15:40:26 +00:00
|
|
|
binaryCaches = [
|
2022-01-21 16:07:12 +00:00
|
|
|
"https://minio.int.chir.rs/cache.int.chir.rs/"
|
2022-01-21 15:40:26 +00:00
|
|
|
"https://cache.nixos.org/"
|
|
|
|
];
|
2022-01-21 15:50:13 +00:00
|
|
|
requireSignedBinaryCaches = false; # internal binary cache is unsigned
|
2022-01-14 13:03:14 +00:00
|
|
|
};
|
2022-01-14 13:07:01 +00:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
2022-01-18 06:19:00 +00:00
|
|
|
flake = "git+https://git.chir.rs/darkkirb/nixos-config.git?ref=main";
|
2022-01-14 13:07:01 +00:00
|
|
|
flags = [
|
|
|
|
"--recreate-lock-file"
|
|
|
|
"--no-write-lock-file"
|
|
|
|
"-L" # print build logs
|
2022-01-17 11:00:18 +00:00
|
|
|
"--impure" # unfortunately...
|
2022-01-14 13:07:01 +00:00
|
|
|
];
|
|
|
|
dates = "daily";
|
|
|
|
};
|
2022-01-14 13:03:14 +00:00
|
|
|
}
|