all repos — nixfiles @ 5a4ead8db870f7c9950d092d5dd3ec1c570024f2

System and user configuration, managed by nix and home-manager

Add disk configuration
Alan Pearce alan@alanpearce.eu
Sat, 09 Sep 2017 16:35:14 +0200
commit

5a4ead8db870f7c9950d092d5dd3ec1c570024f2

parent

0cef6aa80ff7d52afe80b7086cc3452bf020722a

2 files changed, 11 insertions(+), 0 deletions(-)

jump to
M modules/bare-metal.nixmodules/bare-metal.nix
@@ -10,4 +10,7 @@ usbutils   ];
 
   boot.kernelPackages = pkgs.linuxPackages_4_12;
+
+  fileSystems."/".options = [ "noatime" "nodiratime" ];
+  fileSystems."/home".options = [ "noatime" "nodiratime" ];
 }
M satoshipad.nixsatoshipad.nix
@@ -31,6 +31,14 @@ ./modules/passwords.nix     ./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";