diff options
Diffstat (limited to 'modules/envfs.nix')
-rw-r--r-- | modules/envfs.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/envfs.nix b/modules/envfs.nix index 83cad8d0..b5b453a5 100644 --- a/modules/envfs.nix +++ b/modules/envfs.nix | |||
@@ -7,10 +7,12 @@ let | |||
7 | device = "none"; | 7 | device = "none"; |
8 | fsType = "envfs"; | 8 | fsType = "envfs"; |
9 | options = [ | 9 | options = [ |
10 | "bind-mount=/bin" | ||
10 | "fallback-path=${pkgs.symlinkJoin { | 11 | "fallback-path=${pkgs.symlinkJoin { |
11 | name = "fallback-path"; | 12 | name = "fallback-path"; |
12 | inherit (cfg) paths; | 13 | inherit (cfg) paths; |
13 | }}" | 14 | }}" |
15 | "nofail" | ||
14 | ]; | 16 | ]; |
15 | }; | 17 | }; |
16 | "/bin" = { | 18 | "/bin" = { |
@@ -24,9 +26,9 @@ in { | |||
24 | 26 | ||
25 | options = { | 27 | options = { |
26 | services.envfs = { | 28 | services.envfs = { |
27 | enable = lib.mkEnableOption (lib.mdDoc "Envfs filesystem") // { | 29 | enable = lib.mkEnableOption "Envfs filesystem" // { |
28 | default = true; | 30 | default = true; |
29 | description = lib.mdDoc '' | 31 | description = '' |
30 | Fuse filesystem that returns symlinks to executables based on the PATH | 32 | Fuse filesystem that returns symlinks to executables based on the PATH |
31 | of the requesting process. This is useful to execute shebangs on NixOS | 33 | of the requesting process. This is useful to execute shebangs on NixOS |
32 | that assume hard coded locations in locations like /bin or /usr/bin | 34 | that assume hard coded locations in locations like /bin or /usr/bin |
@@ -38,7 +40,7 @@ in { | |||
38 | type = lib.types.package; | 40 | type = lib.types.package; |
39 | default = pkgs.envfs; | 41 | default = pkgs.envfs; |
40 | defaultText = lib.literalExpression "pkgs.envfs"; | 42 | defaultText = lib.literalExpression "pkgs.envfs"; |
41 | description = lib.mdDoc "Which package to use for the envfs."; | 43 | description = "Which package to use for the envfs."; |
42 | }; | 44 | }; |
43 | 45 | ||
44 | paths = lib.mkOption { | 46 | paths = lib.mkOption { |
@@ -58,7 +60,7 @@ in { | |||
58 | ''') | 60 | ''') |
59 | ] | 61 | ] |
60 | ''; | 62 | ''; |
61 | description = lib.mdDoc "Extra packages to join into collection of fallback executables in case not other executable is found"; | 63 | description = "Extra packages to join into collection of fallback executables in case not other executable is found"; |
62 | }; | 64 | }; |
63 | }; | 65 | }; |
64 | }; | 66 | }; |