WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
Showing only changes of commit fae3572178 - Show all commits

View file

@ -216,28 +216,33 @@ update() {
dotdrop install
}
case "$1" in
all)
all
;;
dotfiles)
dotfiles
;;
plugins)
plugins
;;
{%@@ if profile == "Moria" @@%}
docker)
docker-update
;;
repo)
repo
;;
{%@@ endif @@%}
*)
packages
;;
esac
if [ $# -eq 0 ]; then
packages # Update only packages if no option was provided
else
case "$1" in
all)
all
;;
dotfiles)
dotfiles
;;
plugins)
plugins
;;
{%@@ if profile == "Moria" @@%}
docker)
docker-update
;;
repo)
repo
;;
{%@@ endif @@%}
*)
echo "Unknown option: $1"
return 1
;;
esac
fi
}
_update() {