forked from DGNum/liminix
85f7f7293d
... which suggests it could be better named; init is from s6-linux-init not s6-rc
21 lines
445 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|