momo: redeploy-pioneer-because-of-unbroken-encryption #261

Merged
hensoko merged 3 commits from momo/redeploy-pioneer-because-of-unbroken-encryption into momo/main 2023-12-31 19:18:34 +00:00
Showing only changes of commit d192600acf - Show all commits

View file

@ -4,47 +4,44 @@
lib, lib,
... ...
}: { }: {
# Use the GRUB 2 boot loader.
boot.loader.systemd-boot.enable = false; boot.loader.systemd-boot.enable = false;
boot.loader.grub.enable = true; boot.loader.grub = {
# boot.loader.grub.efiSupport = true; enable = true;
# boot.loader.grub.efiInstallAsRemovable = true; devices = [ "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1" ];
# boot.loader.efi.efiSysMountPoint = "/boot/efi"; };
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" "dm-snapshot" "kvm-intel" "virtio_scsi" "uas"]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.extraModulePackages = []; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptroot" = { boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-uuid/531ee357-5777-498f-abbf-64bb4cff9a14"; device = "/dev/disk/by-uuid/bf890962-9f43-4c44-a0df-64cabd303662";
}; };
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-uuid/f5b3152a-a3bd-46d1-968f-53d50fca921e"; { device = "/dev/disk/by-uuid/7eb8989a-6ec4-405f-8810-06486f7621c1";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" =
device = "/dev/disk/by-uuid/1fd053f8-725b-418d-aed1-aee71dac2b62"; { device = "/dev/disk/by-uuid/1fd053f8-725b-418d-aed1-aee71dac2b62";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = [ swapDevices =
{device = "/dev/disk/by-uuid/967d1933-131d-4b56-8aa9-15c11ff940c9";} [ { device = "/dev/disk/by-uuid/2f114633-5b71-46ab-88be-997b27927269"; }
]; ];
networking = { networking = {
defaultGateway = "80.244.242.1"; defaultGateway = {
address = "80.244.242.1";
interface = "enp1s0";
};
nameservers = ["95.129.51.51" "80.244.244.244"]; nameservers = ["95.129.51.51" "80.244.244.244"];
interfaces.enp1s0 = {
interfaces."enp1s0" = { useDHCP = false;
ipv4.addresses = [ ipv4.addresses = [
{ { address = "80.244.242.4"; prefixLength = 29; }
address = "80.244.242.4";
prefixLength = 29;
}
]; ];
}; };
}; };