add config environment.etc which gets converted to pseudofiles
This commit is contained in:
@@ -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
|
||||
'');
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user