seedrng #3

Open
lbailly wants to merge 57 commits from seedrng into main
3 changed files with 6 additions and 1 deletions
Showing only changes of commit 5b0df5aee2 - Show all commits

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
inherit (pkgs)
execline
@ -31,6 +31,8 @@ let
mkdir $out
cp -r $src $out/scripts
chmod -R +w $out
substituteInPlace $out/scripts/{rc.init,rc.shutdown} \
--replace-warn 'pkgs.seedrng' "${lib.getExe' pkgs.seedrng "seedrng"}"
'';
};
service = dir {

View file

@ -32,6 +32,8 @@ else
mkdir -m 0751 -p /run/services/state
fi
pkgs.seedrng
### If your services are managed by s6-rc:
### (replace /run/service with your scandir)
s6-rc-init -d -c /etc/s6-rc/compiled /run/service

View file

@ -4,6 +4,7 @@
### Things to do before hardware halt/reboot/poweroff.
### Ideally, it should be a single call to the service manager,
### telling it to bring all the services down.
pkgs.seedrng
### If your s6-linux-init-maker invocation was made with the -1
### option, messages from rc.shutdown will appear on /dev/console