bootstrap home manager and nix packages on login
This commit is contained in:
parent
9d5b4ddecd
commit
83e657e74b
6 changed files with 67 additions and 57 deletions
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Install Nix Home Manager and packages on first login
|
||||
ConditionUser=!root
|
||||
ConditionPathExists=!%h/.local/state/randofin-os/nixpkgs-init.done
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/randofin-os/nixpkgs.sh
|
||||
ExecStartPost=/usr/bin/mkdir -p %h/.local/state/randofin-os
|
||||
ExecStartPost=/usr/bin/touch %h/.local/state/randofin-os/nixpkgs-init.done
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue