swapped home-manager with curator

This commit is contained in:
randogoth 2025-12-24 13:13:07 +02:00
parent ea79ed24f4
commit bfd48449c7
8 changed files with 16 additions and 29 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -oue pipefail
uv tool install --from git+https://codeberg.org/randogoth/curator/ curator
curator init
curator add brew.mc
curator add nix.micro
curator add nix.vscodium
curator switch

View file

@ -1,23 +0,0 @@
#!/usr/bin/env bash
set -oue pipefail
nix run github:nix-community/home-manager/release-25.11 -- init --switch
pkgs='uv micro vscodium mc'
f=~/.config/home-manager/home.nix
tmp="$(mktemp)"
{
echo " home.packages = ["
for p in $pkgs; do echo " pkgs.$p"; done
echo " ];"
} > "$tmp"
sed -i "/^[[:space:]]*home\.packages[[:space:]]*=[[:space:]]*\[/,/^[[:space:]]*];[[:space:]]*$/{
/^[[:space:]]*home\.packages[[:space:]]*=/{
r $tmp
}
d
}" "$f"
rm -f "$tmp"
home-manager switch