summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 16:35:14 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commit5a4ead8db870f7c9950d092d5dd3ec1c570024f2 (patch)
tree721bd1520bea14f1d931ae975aa5b4d048660a2f
parent0cef6aa80ff7d52afe80b7086cc3452bf020722a (diff)
downloadnixfiles-5a4ead8db870f7c9950d092d5dd3ec1c570024f2.tar.lz
nixfiles-5a4ead8db870f7c9950d092d5dd3ec1c570024f2.tar.zst
nixfiles-5a4ead8db870f7c9950d092d5dd3ec1c570024f2.zip
Add disk configuration
-rw-r--r--modules/bare-metal.nix3
-rw-r--r--satoshipad.nix8
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/bare-metal.nix b/modules/bare-metal.nix
index 04046b1b..969848bb 100644
--- a/modules/bare-metal.nix
+++ b/modules/bare-metal.nix
@@ -10,4 +10,7 @@
   ];
 
   boot.kernelPackages = pkgs.linuxPackages_4_12;
+
+  fileSystems."/".options = [ "noatime" "nodiratime" ];
+  fileSystems."/home".options = [ "noatime" "nodiratime" ];
 }
diff --git a/satoshipad.nix b/satoshipad.nix
index 6aba5a6f..1f013def 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -31,6 +31,14 @@
     ./modules/network-manager.nix
   ];
 
+  boot.initrd.luks.devices = [
+    {
+      name = "root";
+      device = "/dev/disk/by-uuid/bb7f9a24-8963-4d00-9258-118050b35748";
+      preLVM = true;
+    }
+  ];
+
   networking.hostName = "satoshipad";
 
   system.stateVersion = "17.03";