Skip to content

Instantly share code, notes, and snippets.

@Tayrannosaur
Last active December 3, 2022 12:48
Show Gist options
  • Save Tayrannosaur/cc4415e9cfec1190ac5c2efcd84e556d to your computer and use it in GitHub Desktop.
Save Tayrannosaur/cc4415e9cfec1190ac5c2efcd84e556d to your computer and use it in GitHub Desktop.
nix-daemon service script for OpenRC
#!/sbin/openrc-run
name="nix-daemon"
description="Nix Daemon"
supervisor="supervise-daemon"
command="/nix/var/nix/profiles/default/bin/nix-daemon"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
@Piecuuu
Copy link

Piecuuu commented Dec 3, 2022

Just make sure to change it to an executable with chmod +x /etc/init.d/nix-daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment