encrypted setup

This commit is contained in:
quitte 2023-07-26 16:41:55 +02:00
parent c4563e5fe2
commit 186f4ccb08
2 changed files with 8 additions and 10 deletions

View file

@ -50,6 +50,6 @@
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment?
system.stateVersion = "23.05"; # Did you read the comment?
}

View file

@ -5,24 +5,23 @@
{
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/599838c5-49cd-4769-aff1-2236300c097f";
fsType = "xfs";
{ device = "/dev/disk/by-uuid/4d57c7c1-ed70-4fb1-af4c-4ba027b75248";
fsType = "ext4";
};
boot.initrd.luks.devices."luksroot".device = "/dev/disk/by-uuid/cfb9b37e-152d-45e9-b75d-88d71471be45";
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/3F75-65A3";
{ device = "/dev/disk/by-uuid/06C4-1FDB";
fsType = "vfat";
};
@ -38,4 +37,3 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}