liminix-fork/modules/s6-rc.nix
Daniel Barlow 85f7f7293d add bin/init to s6-rc module
... which suggests it could be better named; init is from
s6-linux-init not s6-rc
2022-09-26 21:11:07 +01:00

21 lines
445 B
Nix

{ config, pkgs, ... }:
let
s6-rc-db = pkgs.s6-rc-database.override {
services = builtins.attrValues config.services;
};
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs) s6-init-bin;
in {
config = {
environment = dir {
etc = dir {
s6-rc = dir {
compiled = symlink "${s6-rc-db}/compiled";
};
};
bin = dir {
init = symlink "${s6-init-bin}/bin/init";
};
};
};
}