europa: regen after reinstall

This commit is contained in:
Aaron Bieber 2024-04-21 13:45:42 -06:00
parent 00ecadf210
commit af67ab9c5e
No known key found for this signature in database
2 changed files with 38 additions and 27 deletions

View File

@ -110,6 +110,7 @@ in
boot = { boot = {
binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ]; binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ];
initrd.systemd.enable = true; initrd.systemd.enable = true;
initrd.luks.devices."luks-4d7bf115-cdfd-486b-a2fd-ee620d81060c".device = "/dev/disk/by-uuid/4d7bf115-cdfd-486b-a2fd-ee620d81060c";
loader = { loader = {
systemd-boot = { systemd-boot = {
enable = true; enable = true;
@ -117,7 +118,6 @@ in
}; };
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
}; };
}; };
kernelParams = [ kernelParams = [

View File

@ -1,44 +1,55 @@
{ lib
, modulesPath
, ...
}: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = { # Do not modify this file! It was generated by nixos-generate-config
initrd = { # and may be overwritten by future invocations. Please make changes
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "usbhid" "sd_mod" ]; # to /etc/nixos/configuration.nix instead.
kernelModules = [ ]; { config, lib, pkgs, modulesPath, ... }:
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems = { {
"/" = { imports =
device = "/dev/disk/by-uuid/4b758b9b-4c75-4658-9649-64a2ceba2a0b"; [ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0b946ca0-f0cb-4e54-bc73-d2afe6b328d2";
fsType = "ext4"; fsType = "ext4";
}; };
"/run/media/qbit/backup" = {
boot.initrd.luks.devices."luks-e8368ac8-9b9c-496f-bb19-0d1911070140".device = "/dev/disk/by-uuid/e8368ac8-9b9c-496f-bb19-0d1911070140";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3D38-3AEC";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/run/media/qbit/backup" = {
device = "/dev/disk/by-uuid/6e71eeea-6437-46f4-88d0-126c92af42ef"; device = "/dev/disk/by-uuid/6e71eeea-6437-46f4-88d0-126c92af42ef";
fsType = "ext4"; fsType = "ext4";
label = "backup"; label = "backup";
neededForBoot = false; neededForBoot = false;
}; };
};
boot.initrd.luks.devices."luks-1f16b568-7726-44b6-b082-6b9d5e4d1972".device = "/dev/disk/by-uuid/1f16b568-7726-44b6-b082-6b9d5e4d1972"; swapDevices =
boot.initrd.luks.devices."luks-1f16b568-7726-44b6-b082-6b9d5e4d1972".crypttabExtraOpts = [ "fido2-device=auto" ]; [ { device = "/dev/disk/by-uuid/1c2bb5e0-7ca8-4943-8e0f-527497ce2d61"; }
];
fileSystems."/boot/efi" = { # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
device = "/dev/disk/by-uuid/F0A2-4A56"; # (the default) this is the recommended approach. When using systemd-networkd it's
fsType = "vfat"; # still possible to use this option, but it's recommended to use it in conjunction
}; # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware = { hardware = {
bluetooth.enable = true; bluetooth.enable = true;
rtl-sdr.enable = true; rtl-sdr.enable = true;
}; };
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }