summaryrefslogtreecommitdiff
path: root/system-profiles/tmpfs-root.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system-profiles/tmpfs-root.nix')
-rw-r--r--system-profiles/tmpfs-root.nix29
1 files changed, 20 insertions, 9 deletions
diff --git a/system-profiles/tmpfs-root.nix b/system-profiles/tmpfs-root.nix
index 23939c2e..5a04a166 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.foldr lib.recursiveUpdate {} ([
3 # system.etc.overlay.enable = true; 3 {
4 4 security.sudo.extraConfig = ''
5 Defaults lecture = never
6 '';
7 }
8 ]
9 ++ (lib.optional (options ? disko) {
10 disko.devices.nodev = {
11 "/" = {
12 fsType = "tmpfs";
13 mountOptions = [
14 "mode=0755"
15 ];
16 };
17 };
18 })
19 ++ (lib.optional (!(options ? disko)) {
5 fileSystems."/" = { 20 fileSystems."/" = {
6 fsType = "tmpfs"; 21 fsType = "tmpfs";
7 options = [ "mode=0755" ]; 22 options = [ "mode=0755" ];
8 }; 23 };
9 24 }));
10 security.sudo.extraConfig = ''
11 Defaults lecture = never
12 '';
13 };
14} 25}