add config environment.etc which gets converted to pseudofiles

This commit is contained in:
Daniel Barlow 2022-09-26 20:45:00 +01:00
parent 09a9dba963
commit bd6cbd373f
2 changed files with 24 additions and 8 deletions

View file

@ -17,6 +17,7 @@ in {
services = mkOption {
type = types.attrsOf type_service;
};
environment = mkOption { type = types.anything; };
kernel = {
config = mkOption {
# mostly the values are y n or m, but sometimes
@ -28,4 +29,16 @@ in {
};
};
};
config = {
environment = dir {
etc = dir {
profile = symlink
(pkgs.writeScript ".profile" ''
PATH=${lib.makeBinPath (with pkgs; [ s6-init-bin busybox execline s6-linux-init s6-rc])}
export PATH
'');
};
};
};
}