swapped home-manager with curator
This commit is contained in:
parent
ea79ed24f4
commit
bfd48449c7
8 changed files with 16 additions and 29 deletions
|
|
@ -0,0 +1 @@
|
|||
/var/home/randogoth/Projects/code/randofin-os/files/system/usr/lib/systemd/user/deinonyxus-curator-init.service
|
||||
|
|
@ -1 +0,0 @@
|
|||
../deinonyxus-nixpkgs-init.service
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
[Unit]
|
||||
Description=Install Nix Home Manager and packages on first login
|
||||
ConditionUser=!root
|
||||
ConditionPathExists=!%h/.local/state/deinonyxus/nixpkgs-init.done
|
||||
ConditionPathExists=!%h/.local/state/deinonyxus/curator-init.done
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/deinonyxus/nixpkgs.sh
|
||||
ExecStart=/usr/libexec/deinonyxus/curator.sh
|
||||
ExecStartPost=/usr/bin/mkdir -p %h/.local/state/deinonyxus
|
||||
ExecStartPost=/usr/bin/touch %h/.local/state/deinonyxus/nixpkgs-init.done
|
||||
ExecStartPost=/usr/bin/touch %h/.local/state/deinonyxus/curator-init.done
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
10
files/system/usr/libexec/deinonyxus/curator.sh
Executable file
10
files/system/usr/libexec/deinonyxus/curator.sh
Executable 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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue