forked from DGNum/liminix
move new packages to pkgs/default.nix
This commit is contained in:
parent
c9f55ba177
commit
fd500041fa
4 changed files with 70 additions and 58 deletions
10
pkgs/service-fns/default.nix
Normal file
10
pkgs/service-fns/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{writeText}:
|
||||
writeText "service-fns.sh" ''
|
||||
output() { cat $1/.outputs/$2; }
|
||||
output_path() { echo $(realpath $1/.outputs)/$2; }
|
||||
mkoutputs() {
|
||||
d=/run/service-state/$1
|
||||
mkdir -m 2750 -p $d && chown root:system $d
|
||||
echo $d
|
||||
}
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue