From 186f4ccb0807659d0d1be55f94327ae055782a92 Mon Sep 17 00:00:00 2001 From: quitte Date: Wed, 26 Jul 2023 16:41:55 +0200 Subject: [PATCH] encrypted setup --- hosts/quitte/configuration.nix | 2 +- hosts/quitte/hardware-configuration.nix | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/hosts/quitte/configuration.nix b/hosts/quitte/configuration.nix index 031d434..e7f5df1 100644 --- a/hosts/quitte/configuration.nix +++ b/hosts/quitte/configuration.nix @@ -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? } diff --git a/hosts/quitte/hardware-configuration.nix b/hosts/quitte/hardware-configuration.nix index f88e24b..ec2fb0d 100644 --- a/hosts/quitte/hardware-configuration.nix +++ b/hosts/quitte/hardware-configuration.nix @@ -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; } -