From 5a4ead8db870f7c9950d092d5dd3ec1c570024f2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 16:35:14 +0200 Subject: Add disk configuration --- modules/bare-metal.nix | 3 +++ satoshipad.nix | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/modules/bare-metal.nix b/modules/bare-metal.nix index 04046b1..969848b 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 6aba5a6..1f013de 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"; -- cgit 1.4.1