update: modules/cli/fish.nix

This commit is contained in:
2026-03-24 10:48:41 +01:00
parent 0749c86085
commit 5500f39c8c

View File

@@ -1,4 +1,4 @@
{ userConfig, hostName, ... }: { userConfig, ... }:
{ {
programs.fish = { programs.fish = {
@@ -76,6 +76,37 @@
"pandoc $argv -t html |wl-copy -t text/html"; "pandoc $argv -t html |wl-copy -t text/html";
}; };
update_files = {
body =
# fish
''
echo "=== System packages updates ==="
pushd /etc/nixos
git add -A
git commit -m 'chore: state before pulling'
if git pull
reload_system
end
popd
echo "=== User packages update ==="
pushd $HOME/.config/home-manager
git add -A
git commit -m 'chore: state before pulling'
if git pull
reload_dotfiles
end
popd
'';
};
update = { update = {
body = body =
if userConfig.isNixOS then if userConfig.isNixOS then