51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" "kvm-amd" ];
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault true;
|
|
|
|
fileSystems."/" =
|
|
{
|
|
device = "none";
|
|
fsType = "tmpfs";
|
|
options = [ "size=16G" "mode=755" ];
|
|
};
|
|
fileSystems."/nix" =
|
|
{
|
|
device = "/dev/disk/by-uuid/856e1ebe-832f-422d-8d91-d43a5d852abb";
|
|
fsType = "f2fs";
|
|
};
|
|
|
|
boot.initrd = {
|
|
luks.devices."enc" = {
|
|
crypttabExtraOpts = [ "fido2-device=auto" ];
|
|
device = "/dev/disk/by-uuid/08897ecb-23ce-4352-a1fc-fa442b9e0f72";
|
|
};
|
|
systemd.enable = true;
|
|
};
|
|
|
|
|
|
fileSystems."/boot" =
|
|
{
|
|
device = "/dev/disk/by-uuid/1521-B173";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
libva
|
|
libva-utils
|
|
];
|
|
};
|
|
}
|