Add non-NixOS related extras
directory
This commit is contained in:
parent
2336482e93
commit
365ddb304f
6
extras/README.md
Normal file
6
extras/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Extras
|
||||
These are extra files that might not be needed on NixOS, but help using Nix on
|
||||
other Linux distrubutions.
|
||||
|
||||
Included files:
|
||||
- `systemd/`: `systemd` units relating to the proper initialization of Nix on other distributions
|
14
extras/systemd/nix-daemon-symlink-reload.service
Normal file
14
extras/systemd/nix-daemon-symlink-reload.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Reload nix-daemon after mounting /nix
|
||||
After=mount.nix
|
||||
Requires=nix.mount
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/systemctl daemon-reload
|
||||
ExecStart=/usr/bin/systemctl restart --no-block nix-daemon.socket
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
Loading…
x
Reference in New Issue
Block a user