forked from DGNum/liminix
seedrng #3
3 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue