26 lines
635 B
Nix
26 lines
635 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
{
|
|
# Enable automatic system updates
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
flake = inputs.self.outPath;
|
|
flags = [
|
|
"--update-input"
|
|
"nixpkgs"
|
|
"-L" # print build logs
|
|
];
|
|
dates = "weekly";
|
|
randomizedDelaySec = "45min";
|
|
};
|
|
# Automate Nix garbage collection
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
# Allow non-free software (RMS will be mad at me :<)
|
|
nixpkgs.config.allowUnfree = true;
|
|
# Enable nix-command and flakes
|
|
nix.settings.experimental-features = [ "nix-command" "flakes"];
|
|
}
|