diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index a792b0d4..a9e1f4a5 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -96,8 +96,8 @@ nrb = "sudo nixos-rebuild build"; # Rebuild everything - rebuild-home = "home-manager switch -b backup --flake /etc/nixos/git"; - rebuild-host = "sudo nixos-rebuild switch --flake /etc/nixos/git"; + rebuild-home = "git -C /etc/nixos/git pull && home-manager switch -b backup --flake /etc/nixos/git"; + rebuild-host = "git -C /etc/nixos/git pull && sudo nixos-rebuild switch --flake /etc/nixos/git"; rebuild-all = "rebuild-home && rebuild-host"; }; }; diff --git a/lib/default.nix b/lib/default.nix index cfbcb56d..3b0edf21 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -18,6 +18,7 @@ ../nixos inputs.sops-nix.nixosModules.sops # Handle secrets inputs.lanzaboote.nixosModules.lanzaboote # SecureBoot Configuration + inputs.nur.nixosModules.nur # NixOS User Repository ] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]); };