diff --git a/configuration.nix b/configuration.nix index 34452d0..776327c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -150,6 +150,18 @@ # Or disable the firewall altogether. # networking.firewall.enable = false; + system.autoUpgrade = { + enable = true; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" + ]; + dates = "09:00"; + randomizedDelaySec = "45min"; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/home.nix b/home.nix index a2a6fd8..3f89109 100644 --- a/home.nix +++ b/home.nix @@ -100,6 +100,7 @@ gb = "git branch"; gm = "git merge"; gf = "git fetch"; + rebuild = "~/dotfiles/nixos/rebuild.sh"; }; syntaxHighlighting.enable = true; syntaxHighlighting.highlighters = ["main" "brackets"];