moved nhmu

This commit is contained in:
John Lancaster
2025-07-02 23:04:32 -05:00
parent c1a9e401cb
commit 0db404fd58
2 changed files with 7 additions and 4 deletions

View File

@@ -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, ... }: {

View File

@@ -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
'')