mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
before home-manager update
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
|
||||||
|
direnv hook fish | source
|
||||||
|
|
||||||
fastfetch --config ~/.config/fastfetch/startup.jsonc
|
fastfetch --config ~/.config/fastfetch/startup.jsonc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -69,16 +71,6 @@
|
|||||||
"nh os switch /etc/nixos/";
|
"nh os switch /etc/nixos/";
|
||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
|
||||||
body = # fish
|
|
||||||
"eza --long --icons --group-directories-first --git $argv";
|
|
||||||
};
|
|
||||||
|
|
||||||
lst = {
|
|
||||||
body = # fish
|
|
||||||
"eza --long --icons --color --git --tree $argv";
|
|
||||||
};
|
|
||||||
|
|
||||||
cp_mail = {
|
cp_mail = {
|
||||||
body = # fish
|
body = # fish
|
||||||
"pandoc $argv -t html |wl-copy -t text/html";
|
"pandoc $argv -t html |wl-copy -t text/html";
|
||||||
@@ -91,18 +83,32 @@
|
|||||||
''
|
''
|
||||||
echo "=== System packages update==="
|
echo "=== System packages update==="
|
||||||
pushd /etc/nixos
|
pushd /etc/nixos
|
||||||
|
git add -A
|
||||||
|
git commit -m "before system update"
|
||||||
nix flake update
|
nix flake update
|
||||||
reload_system
|
if test $status -eq 0
|
||||||
|
git add ./flake.lock
|
||||||
|
git commit -m "flake lock update"
|
||||||
|
reload_system
|
||||||
|
else
|
||||||
|
echo "Error while updating system flake!"
|
||||||
|
end
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo "===User packages update==="
|
echo "===User packages update==="
|
||||||
pushd $HOME/.config/home-manager
|
pushd $HOME/.config/home-manager
|
||||||
|
git add -A
|
||||||
|
git commit -m "before home-manager update"
|
||||||
nix flake update
|
nix flake update
|
||||||
reload_dotfiles
|
if test $status -eq 0
|
||||||
|
git add ./flake.lock
|
||||||
|
git commit -m "flake lock update"
|
||||||
|
reload_dotfiles
|
||||||
|
else
|
||||||
|
echo "Error while updating home flake!"
|
||||||
|
end
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
echo "=== Flatpak update==="
|
|
||||||
if type -q flatpak
|
if type -q flatpak
|
||||||
echo "===Flatpak update==="
|
echo "===Flatpak update==="
|
||||||
flatpak update --noninteractive
|
flatpak update --noninteractive
|
||||||
@@ -144,15 +150,11 @@
|
|||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
rm = {
|
shellAliases = {
|
||||||
body = "trash $argv";
|
ls = "eza --long --icons --group-directories-first --git";
|
||||||
};
|
lst = "eza --long --icons --color --git --tree";
|
||||||
|
rm = "trash";
|
||||||
open = {
|
|
||||||
body = "nohup xdg-open $argv > /dev/null & ";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,5 +19,11 @@
|
|||||||
slurp
|
slurp
|
||||||
bc
|
bc
|
||||||
nh
|
nh
|
||||||
|
runc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
xdg.configFile."containers/containers.conf".text = ''
|
||||||
|
[engine]
|
||||||
|
runtime = "runc"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user