summaryrefslogtreecommitdiff
path: root/system-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-09-24 10:56:18 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-09-24 10:56:18 +0200
commit801594dd2168c6d99b34de0bc26ec037aa91ebee (patch)
treeaf9183fd71cc7ed5fd8a01b19f3979ed632640ec /system-profiles
parent7cbc2ab91426b555d01fb90d056119c9677b1a77 (diff)
downloadnixos-801594dd2168c6d99b34de0bc26ec037aa91ebee.tar
nixos-801594dd2168c6d99b34de0bc26ec037aa91ebee.tar.gz
nixos-801594dd2168c6d99b34de0bc26ec037aa91ebee.tar.bz2
nixos-801594dd2168c6d99b34de0bc26ec037aa91ebee.tar.xz
nixos-801594dd2168c6d99b34de0bc26ec037aa91ebee.zip
...
Diffstat (limited to 'system-profiles')
-rw-r--r--system-profiles/tmpfs-root.nix46
1 files changed, 23 insertions, 23 deletions
diff --git a/system-profiles/tmpfs-root.nix b/system-profiles/tmpfs-root.nix
index 7840dadf..3b4eb9a7 100644
--- a/system-profiles/tmpfs-root.nix
+++ b/system-profiles/tmpfs-root.nix
@@ -1,25 +1,25 @@
1{ options, lib, ... }: { 1{ options, lib, ... }: {
2 config = lib.mkMerge 2 config = foldr recursiveUpdate {} ([
3 [ (lib.mkIf (options ? disko) { 3 {
4 disko.devices.nodev = { 4 security.sudo.extraConfig = ''
5 "/" = { 5 Defaults lecture = never
6 fsType = "tmpfs"; 6 '';
7 mountOptions = [ 7 }
8 "mode=0755" 8 ]
9 ]; 9 ++ (lib.optional (options ? disko) {
10 }; 10 disko.devices.nodev = {
11 }; 11 "/" = {
12 }) 12 fsType = "tmpfs";
13 (lib.mkIf (!(options ? disko)) { 13 mountOptions = [
14 fileSystems."/" = { 14 "mode=0755"
15 fsType = "tmpfs"; 15 ];
16 options = [ "mode=0755" ]; 16 };
17 }; 17 };
18 }) 18 })
19 { 19 ++ (lib.optional (!(options ? disko)) {
20 security.sudo.extraConfig = '' 20 fileSystems."/" = {
21 Defaults lecture = never 21 fsType = "tmpfs";
22 ''; 22 options = [ "mode=0755" ];
23 } 23 };
24 ]; 24 }));
25} 25}