hs: change root disk
All checks were successful
/ build-all (push) Successful in 34m49s

This commit is contained in:
ant 2025-07-24 00:37:48 +02:00
parent 11876497f4
commit 0cedb22800

View file

@ -1,30 +1,48 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
]; pkgs,
modulesPath,
...
}:
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; let
rootPartitionUUID = "21c23fb8-2f96-4b03-b50c-0ca10a96d0a0";
rootPartitionDecryptedUUID = "e360258b-e712-43b1-9d3a-630041050ef1";
bootPartitionUUID = "EAD9-8BF4";
in
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/0844f6dd-b3b9-4a25-8435-e24775f8a5c9"; device = "/dev/disk/by-uuid/${rootPartitionDecryptedUUID}";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-${rootPartitionUUID}".device =
"/dev/disk/by-uuid/${rootPartitionUUID}";
boot.initrd.luks.devices."luks-1f257dc8-c436-4a5c-8652-8d9b35faa34f".device = "/dev/disk/by-uuid/1f257dc8-c436-4a5c-8652-8d9b35faa34f"; fileSystems."/boot" = {
device = "/dev/disk/by-uuid/${bootPartitionUUID}";
fileSystems."/boot" = fsType = "vfat";
{ device = "/dev/disk/by-uuid/CD7C-CD77"; options = [
fsType = "vfat"; "fmask=0077"
options = [ "fmask=0077" "dmask=0077" ]; "dmask=0077"
}; ];
};
swapDevices = [ ]; swapDevices = [ ];