The `lib/combinators.nix` file was getting quite long and some ideas I have for future combinators may even require ancillary files. To help scale these changes, this commit breaks each combinator into its own file under the `lib/combinators` directory.
14 lines
288 B
Nix
14 lines
288 B
Nix
{ combinators, ... }:
|
|
let
|
|
inherit (combinators)
|
|
include-once
|
|
unsafe-add-raw-args
|
|
;
|
|
in
|
|
{
|
|
sig = "Permission";
|
|
doc = ''
|
|
Bind mounts the runtime working directory as read-write.
|
|
'';
|
|
impl = include-once "mount-cwd" (unsafe-add-raw-args "--bind \"$PWD\" \"$PWD\"");
|
|
}
|