swapped home-manager with curator
This commit is contained in:
parent
ea79ed24f4
commit
bfd48449c7
8 changed files with 16 additions and 29 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
## First login behavior
|
## First login behavior
|
||||||
- Triggers for each non-root user on their first session.
|
- Triggers for each non-root user on their first session.
|
||||||
- Writes state to `~/.local/state/deinonyxus/nixpkgs-init.done`; delete it to rerun.
|
- Writes state to `~/.local/state/deinonyxus/curator-init.done`; delete it to rerun.
|
||||||
- Bootstraps `~/.config/home-manager/home.nix` and runs `home-manager switch` with the package set above.
|
- Bootstraps `~/.config/home-manager/home.nix` and runs `home-manager switch` with the package set above.
|
||||||
|
|
||||||
## Install / Rebase
|
## Install / Rebase
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
../system/usr/libexec/randofin-os/nixpkgs.sh
|
|
||||||
|
|
@ -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]
|
[Unit]
|
||||||
Description=Install Nix Home Manager and packages on first login
|
Description=Install Nix Home Manager and packages on first login
|
||||||
ConditionUser=!root
|
ConditionUser=!root
|
||||||
ConditionPathExists=!%h/.local/state/deinonyxus/nixpkgs-init.done
|
ConditionPathExists=!%h/.local/state/deinonyxus/curator-init.done
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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/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]
|
[Install]
|
||||||
WantedBy=default.target
|
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
|
|
||||||
|
|
@ -32,6 +32,7 @@ modules:
|
||||||
install:
|
install:
|
||||||
packages:
|
packages:
|
||||||
- syncthing
|
- syncthing
|
||||||
|
- uv
|
||||||
- waydroid
|
- waydroid
|
||||||
remove:
|
remove:
|
||||||
packages:
|
packages:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue