feat: add framework-work hardware configuration
This commit is contained in:
parent
951f24a498
commit
d9d83983a4
1 changed files with 21 additions and 35 deletions
|
|
@ -1,48 +1,34 @@
|
||||||
{
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
config,
|
# and may be overwritten by future invocations. Please make changes
|
||||||
lib,
|
# to /etc/nixos/configuration.nix instead.
|
||||||
pkgs,
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ];
|
||||||
"nvme"
|
|
||||||
"xhci_pci"
|
|
||||||
"thunderbolt"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
boot.initrd.luks.devices.cryptroot = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-partuuid/90aab143-4d2f-4a77-b08e-95fad9ee08af";
|
{ device = "/dev/mapper/luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d";
|
||||||
allowDiscards = true;
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
boot.initrd.luks.devices."luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d".device = "/dev/disk/by-uuid/ae39dec6-3a9a-4822-9b46-a71f776dca5d";
|
||||||
device = "/dev/mapper/cryptroot";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "noatime" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" =
|
||||||
device = "/dev/disk/by-uuid/D21C-F860";
|
{ device = "/dev/disk/by-uuid/82A5-BE9B";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
"fmask=0077"
|
};
|
||||||
"dmask=0077"
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/mapper/luks-f224835a-588d-4ad4-921c-a73e952da0ea"; }
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue