diff --git a/flake.nix b/flake.nix index 00aa531..c9f9e13 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ outputs = { self, nixpkgs, - }: let + } @ inputs: let overlays = [ (final: prev: { nodejs = prev.nodejs_latest; @@ -46,6 +46,7 @@ {nixpkgs.overlays = overlays;} ./nix/configuration.nix ]; + specialArgs = {inherit inputs;}; }; # Deployment helper - use with: nix run .#deploy diff --git a/nix/configuration.nix b/nix/configuration.nix index e499384..a585d45 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -1,4 +1,4 @@ -{...}: { +{inputs, ...}: { imports = [ ./hardware-configuration.nix ./module.nix @@ -67,6 +67,15 @@ }; }; + system.autoUpgrade = { + enable = true; + flake = inputs.self.outPath; + flags = ["--update-input" "nixpkgs" "--update-input" "volpe"]; + dates = "04:00"; + randomizedDelaySec = "45min"; + allowReboot = false; + }; + services.snowflake-proxy = { enable = true; capacity = 100;