diff options
Diffstat (limited to 'system-profiles')
| -rw-r--r-- | system-profiles/tmpfs-root.nix | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/system-profiles/tmpfs-root.nix b/system-profiles/tmpfs-root.nix index 23939c2e..7840dadf 100644 --- a/system-profiles/tmpfs-root.nix +++ b/system-profiles/tmpfs-root.nix | |||
| @@ -1,14 +1,25 @@ | |||
| 1 | { ... }: { | 1 | { options, lib, ... }: { |
| 2 | config = { | 2 | config = lib.mkMerge |
| 3 | # system.etc.overlay.enable = true; | 3 | [ (lib.mkIf (options ? disko) { |
| 4 | 4 | disko.devices.nodev = { | |
| 5 | fileSystems."/" = { | 5 | "/" = { |
| 6 | fsType = "tmpfs"; | 6 | fsType = "tmpfs"; |
| 7 | options = [ "mode=0755" ]; | 7 | mountOptions = [ |
| 8 | }; | 8 | "mode=0755" |
| 9 | 9 | ]; | |
| 10 | security.sudo.extraConfig = '' | 10 | }; |
| 11 | Defaults lecture = never | 11 | }; |
| 12 | ''; | 12 | }) |
| 13 | }; | 13 | (lib.mkIf (!(options ? disko)) { |
| 14 | fileSystems."/" = { | ||
| 15 | fsType = "tmpfs"; | ||
| 16 | options = [ "mode=0755" ]; | ||
| 17 | }; | ||
| 18 | }) | ||
| 19 | { | ||
| 20 | security.sudo.extraConfig = '' | ||
| 21 | Defaults lecture = never | ||
| 22 | ''; | ||
| 23 | } | ||
| 24 | ]; | ||
| 14 | } | 25 | } |
