35 lines
991 B
Nix
35 lines
991 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [ ];
|
|
config = {
|
|
networking.hostName = "flaki";
|
|
boot.kernelModules = [ "kvm-intel" "r8169" ];
|
|
|
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/1786c83d-16de-4a83-bedc-dd2606b6eccc";
|
|
|
|
hardware.sane.enable = true;
|
|
hardware.sane.drivers.scanSnap.enable = true;
|
|
|
|
fileSystems."/" =
|
|
{
|
|
device = "/dev/mapper/vg-root";
|
|
# device = "/dev/disk/by-uuid/2f6792bd-35d6-497d-83f5-bf315e055ebe";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-uuid/3874-FE08";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices =
|
|
[ { device = "/dev/disk/by-uuid/636e053e-e829-4f28-8bb7-f45a4343f76d"; }
|
|
];
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
};
|
|
}
|