summaryrefslogtreecommitdiff
path: root/system-profiles/tmpfs-root.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-02 00:15:19 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-02 00:15:19 +0100
commit86ccf1964b5e30ead1b5f0d8ad376f9aa655d684 (patch)
treee15c0c338518c34c1e7066a1bded2ade641564f2 /system-profiles/tmpfs-root.nix
parent42984e77041cfc95d333319bef0b2d8f441f56d3 (diff)
downloadnixos-86ccf1964b5e30ead1b5f0d8ad376f9aa655d684.tar
nixos-86ccf1964b5e30ead1b5f0d8ad376f9aa655d684.tar.gz
nixos-86ccf1964b5e30ead1b5f0d8ad376f9aa655d684.tar.bz2
nixos-86ccf1964b5e30ead1b5f0d8ad376f9aa655d684.tar.xz
nixos-86ccf1964b5e30ead1b5f0d8ad376f9aa655d684.zip
tmpfs-root system-profile
Diffstat (limited to 'system-profiles/tmpfs-root.nix')
-rw-r--r--system-profiles/tmpfs-root.nix12
1 files changed, 12 insertions, 0 deletions
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 @@
1{ ... }: {
2 config = {
3 fileSystems."/" = {
4 fsType = "tmpfs";
5 options = [ "mode=0755" ];
6 };
7
8 security.sudo.extraConfig = ''
9 Defaults lecture = never
10 '';
11 };
12}