diff --git a/dotfiles/nixos/desktop/sysconfig/nixos.nix b/dotfiles/nixos/desktop/sysconfig/nixos.nix index 84eec068..9e669c3b 100644 --- a/dotfiles/nixos/desktop/sysconfig/nixos.nix +++ b/dotfiles/nixos/desktop/sysconfig/nixos.nix @@ -1,5 +1,5 @@ -{ pkgs, lib, ... }: { - nixpkgs.config.allowUnfree = true; +{ pkgs, lib, inputs, ... }: { + nixpkgs.config.allowUnfree = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; programs.nix-ld = { enable = true; @@ -7,4 +7,15 @@ }; nix.settings.experimental-features = [ "nix-command" "flakes" ]; home-manager.backupFileExtension = "backup"; -} \ No newline at end of file + system.autoUpgrade = { + enable = true; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" + ]; + dates = "04:00"; + randomizedDelaySec = "30min"; + }; +}