export "dir" and "symlink" from pseudofiles package
This commit is contained in:
@@ -4,8 +4,7 @@ expr=$(cat <<"EXPR"
|
||||
let
|
||||
overlay = import <liminix/overlay.nix>;
|
||||
nixpkgs = import <nixpkgs> { overlays = [overlay]; };
|
||||
structure = import ./structure.nix;
|
||||
in nixpkgs.pkgs.pseudofile "pseudo.s6-init" structure
|
||||
in nixpkgs.pkgs.callPackage ./test.nix {}
|
||||
EXPR
|
||||
)
|
||||
|
||||
|
@@ -1,5 +1,7 @@
|
||||
let
|
||||
dir = contents: { type = "d"; inherit contents; };
|
||||
{
|
||||
pseudofile
|
||||
}: let
|
||||
inherit (pseudofile) dir;
|
||||
structure = {
|
||||
service = dir {
|
||||
s6-linux-init-runleveld = dir {
|
||||
@@ -42,4 +44,4 @@ let
|
||||
};
|
||||
uncaught-logs = (dir {}) // {mode = "2750";};
|
||||
};
|
||||
in structure
|
||||
in pseudofile.write "pseudo.s6-init" structure
|
Reference in New Issue
Block a user