Skip to content

Instantly share code, notes, and snippets.

@sputnikus
Created July 3, 2025 07:51
Show Gist options
  • Save sputnikus/ebeb3fdcf2fcd174d52e950e1c6a0c20 to your computer and use it in GitHub Desktop.
Save sputnikus/ebeb3fdcf2fcd174d52e950e1c6a0c20 to your computer and use it in GitHub Desktop.

Revisions

  1. sputnikus created this gist Jul 3, 2025.
    3 changes: 3 additions & 0 deletions command.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon
    sudo chmod a+x /etc/init.d/nix-daemon
    fisher install kidonng/nix-completions.fish
    7 changes: 7 additions & 0 deletions nix-daemon
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/sbin/openrc-run

    name=$RC_SVCNAME
    description="Nix Daemon"
    supervisor="supervise-daemon"
    command="/nix/var/nix/profiles/default/bin/nix-daemon"
    command_args="--daemon"