4
0
Fork 2
mirror of https://gerrit.hackerspace.pl/hscloud synced 2025-01-21 22:03:54 +00:00

c/m/dcr01s22: pivot to lvm root

The bootloader is *not* moved yet, machine still boots off the old disk

Change-Id: I8cc92489bb06bfe9581d68503237e08fa8082c7c
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1766
Reviewed-by: q3k <q3k@hackerspace.pl>
This commit is contained in:
implr 2023-11-03 01:47:23 +01:00 committed by implr
parent b37b70cbd4
commit 8edc52e619

View file

@ -10,8 +10,15 @@ rec {
system.stateVersion = "19.09";
nix.maxJobs = 48;
boot.initrd.kernelModules = [ "dm-raid" ];
boot.loader.grub.device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX1M604518E";
fileSystems."/".device = "/dev/disk/by-uuid/b4149083-49fe-4951-a143-aff4cedaf33a";
#fileSystems."/".device = "/dev/disk/by-uuid/b4149083-49fe-4951-a143-aff4cedaf33a";
fileSystems."/".device = "/dev/vg-nixos-hscloud/nixos-root";
environment.etc."lvm/lvm.conf".text = ''
devices/issue_discards = 1
'';
hscloud.base = {
mgmtIf = "enp130s0f0";