forked from DGNum/liminix
add config environment.etc which gets converted to pseudofiles
This commit is contained in:
parent
09a9dba963
commit
bd6cbd373f
2 changed files with 24 additions and 8 deletions
|
@ -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
|
||||
'');
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue