diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-12-02 23:21:48 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-12-02 23:21:48 +0000 |
| commit | d1b7acbad81bd4dcd430440e543a135a7ad34035 (patch) | |
| tree | d94e18451e747cfc82a0d75b904200c6e46146b3 /home-manager/fish/default.nix | |
| parent | enabled open-webui (diff) | |
added `nixos sync`
Diffstat (limited to '')
| -rw-r--r-- | home-manager/fish/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/home-manager/fish/default.nix b/home-manager/fish/default.nix index 7eb7c7b..d7567e8 100644 --- a/home-manager/fish/default.nix +++ b/home-manager/fish/default.nix @@ -75,7 +75,7 @@ ''; nixos = '' - set defaultResponse "Usage: nixos update | up || nixos upgrade || nixos config <path> || nixos clean" + set defaultResponse "Usage: nixos update | up || nixos upgrade || nixos config <path> || nixos sync || nixos clean" if test (count $argv) -lt 1 echo defaultResponse return 1 @@ -99,7 +99,13 @@ echo "Error: 'nixos config' requires a <path> argument (relative to $HOME/.nix)" return 1 end - hx ~/.nix/$argv[2] + cd ~/.nix && hx ~/.nix/$argv[2] + case sync + if test (count $argv) -gt 1 + echo "Error: 'nixos sync' takes no additional arguments." + return 1 + end + git -C ~/.nix pull case clean if test (count $argv) -gt 1 echo "Error: 'nixos clean' takes no additional arguments." |
