31 lines
675 B
Nix
31 lines
675 B
Nix
{ pkgs, ... }: {
|
|
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" ];
|
|
};
|
|
};
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
flake = "github:DarkKirb/nixos-config";
|
|
flags = [
|
|
"--recreate-lock-file"
|
|
"--no-write-lock-file"
|
|
"-L" # print build logs
|
|
];
|
|
dates = "daily";
|
|
};
|
|
}
|