daemonix approach
This commit is contained in:
parent
8d362d13b2
commit
d4e84b0e41
7 changed files with 48 additions and 38 deletions
14
files/system/usr/lib/systemd/system/nix-overlay.service
Normal file
14
files/system/usr/lib/systemd/system/nix-overlay.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Mount OverlayFS for /nix
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=nix-daemon.service
|
||||
ConditionPathExists=/usr/bin/mount-nix-overlay.sh
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/mount-nix-overlay.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[Unit]
|
||||
Description=Ensure nix-toolbox container is available for this user
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/nix-toolbox-ensure
|
||||
RemainAfterExit=yes
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue