~kaction/config

ref: 871614e344d8ece5ad973fd71d112e24c2a35586 config/system-v2/nix-daemon/runit.nix -rw-r--r-- 458 bytes
871614e3 — Dmitry Bogatov nix-sys: add "kaction" user into "video" group 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
{ runCommand, writeScript, execline, cacert, nix }:
let
  runscript = writeScript "nix-daemon.run" ''
    #!${execline}/bin/execlineb -P
    export SSL_CERT_FILE     ${cacert}/etc/ssl/certs/ca-bundle.crt
    export NIX_SSL_CERT_FILE ${cacert}/etc/ssl/certs/ca-bundle.crt
    ${nix}/bin/nix-daemon
  '';
in runCommand "nix-daemon.sv" { inherit runscript; } ''
  mkdir -p $out
  cp $runscript $out/run
  ln -s /run/runit/supervise.nix-daemon $out/supervise
''