liminix-fork/modules/s6-rc.nix

22 lines
445 B
Nix
Raw Normal View History

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;
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";
};
};
bin = dir {
init = symlink "${s6-init-bin}/bin/init";
};
2022-09-26 21:59:56 +02:00
};
};
}