2022-09-26 21:59:56 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
s6-rc-db = pkgs.s6-rc-database.override {
|
|
|
|
services = builtins.attrValues config.services;
|
|
|
|
};
|
|
|
|
inherit (pkgs.pseudofile) dir symlink;
|
2022-09-26 22:11:07 +02:00
|
|
|
inherit (pkgs) s6-init-bin;
|
2022-09-26 21:59:56 +02:00
|
|
|
in {
|
|
|
|
config = {
|
|
|
|
environment = dir {
|
|
|
|
etc = dir {
|
|
|
|
s6-rc = dir {
|
|
|
|
compiled = symlink "${s6-rc-db}/compiled";
|
|
|
|
};
|
|
|
|
};
|
2022-09-26 22:11:07 +02:00
|
|
|
bin = dir {
|
|
|
|
init = symlink "${s6-init-bin}/bin/init";
|
|
|
|
};
|
2022-09-26 21:59:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|