From 86ccf1964b5e30ead1b5f0d8ad376f9aa655d684 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 2 Nov 2022 00:15:19 +0100 Subject: tmpfs-root system-profile --- system-profiles/tmpfs-root.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 system-profiles/tmpfs-root.nix (limited to 'system-profiles/tmpfs-root.nix') diff --git a/system-profiles/tmpfs-root.nix b/system-profiles/tmpfs-root.nix new file mode 100644 index 00000000..d0b3be76 --- /dev/null +++ b/system-profiles/tmpfs-root.nix @@ -0,0 +1,12 @@ +{ ... }: { + config = { + fileSystems."/" = { + fsType = "tmpfs"; + options = [ "mode=0755" ]; + }; + + security.sudo.extraConfig = '' + Defaults lecture = never + ''; + }; +} -- cgit v1.2.3