diff --git a/flake.nix b/flake.nix index 931615b..5fec4ae 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,13 @@ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "1password-cli" ]; + + home.packages = with pkgs; [ + (writeShellScriptBin "nhmu" '' + nix flake update --flake ~/.config/home-manager + nix run home-manager -- switch --flake ~/.config/home-manager + '') + ]; }; nixosModules.default = { config, ... }: { diff --git a/nixosModules/scripts.nix b/nixosModules/scripts.nix index e2a1f92..d3b1c2c 100644 --- a/nixosModules/scripts.nix +++ b/nixosModules/scripts.nix @@ -4,10 +4,6 @@ let in { environment.systemPackages = with pkgs; [ - (writeShellScriptBin "nhmu" '' - nix flake update --flake ~/.config/home-manager - nix run home-manager -- switch --flake ~/.config/home-manager - '') (pkgs.writeShellScriptBin "nfs" '' sudo nixos-rebuild switch --flake $(readlink -f /etc/nixos)#${hostName} --impure '')