about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-06-27 01:16:23 +0200
committerProfpatsch <mail@profpatsch.de>2022-06-27 01:17:24 +0200
commit9e9ed68fcdf84b69c17f2a077ea038e7a5d28bf5 (patch)
treea6dc1cfeaa98be15013ceabdc6058d40cf9d23e1 /machines/profpatsch
parent53e01dbc325e7d58a25a9746be85f6f45f048cbd (diff)
machines/leguin: fix boot partitions
I had them copied from the wrong module, of course this can’t work.
Since the kernel config & boot loader config is now in thinkpad, this
might just work (famous last words).
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/leguin.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/machines/profpatsch/leguin.nix b/machines/profpatsch/leguin.nix
index bc9fed67..c1c6f195 100644
--- a/machines/profpatsch/leguin.nix
+++ b/machines/profpatsch/leguin.nix
@@ -35,17 +35,18 @@ in
 
     };
 
-    boot.loader.grub.device = "/dev/sda";
+    boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-label/root";
 
-    fileSystems = {
-      "/" = {
-        device = "/dev/sda3";
-        fsType = "ext4";
-      };
-      "/boot" = {
-        device = "/dev/sda2";
-        fsType = "ext4";
-      };
+    fileSystems."/" = {
+      device = "/dev/disk/by-label/nixos";
+      fsType = "btrfs";
+      options = [ "ssd" "subvol=/root" ];
+    };
+
+    fileSystems."/boot" = {
+      device = "/dev/disk/by-label/BOOT";
+      fsType = "vfat";
+      options = ["nofail"];
     };
 
     vuizvui.user.profpatsch.server.sshPort = 7001;