Add non-NixOS related extras directory

This commit is contained in:
NullBite 2023-12-27 18:38:56 -05:00
parent 2336482e93
commit 365ddb304f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 20 additions and 0 deletions

6
extras/README.md Normal file
View 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

View 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