81 lines
1.7 KiB
Nix
81 lines
1.7 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
wireless.bluetooth.enable = true;
|
|
|
|
services.logind = {
|
|
lidSwitch = "ignore";
|
|
powerKey = "suspend";
|
|
};
|
|
|
|
boot = {
|
|
kernelModules = ["kvm-amd"];
|
|
extraModulePackages = [];
|
|
initrd = {
|
|
luks.devices."luks-fe586da4-b164-4362-bcdf-9c5dd6c69a2b".device = "/dev/disk/by-uuid/fe586da4-b164-4362-bcdf-9c5dd6c69a2b";
|
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
|
kernelModules = [
|
|
"i915"
|
|
];
|
|
systemd.enable = true;
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/79ce18b8-3a9e-4cd0-be62-60972686f44a";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
"subvol=@nixos-root"
|
|
];
|
|
};
|
|
"/home" = {
|
|
device = "/dev/disk/by-uuid/79ce18b8-3a9e-4cd0-be62-60972686f44a";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
"subvol=@home"
|
|
];
|
|
};
|
|
"/storage" = {
|
|
device = "/dev/disk/by-uuid/79ce18b8-3a9e-4cd0-be62-60972686f44a";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
"subvol=@storage"
|
|
];
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/976C-7EE6";
|
|
fsType = "vfat";
|
|
options = ["fmask=0022" "dmask=0022"];
|
|
};
|
|
};
|
|
|
|
swapDevices = [];
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver
|
|
vaapiIntel
|
|
vpl-gpu-rt
|
|
];
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|