49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
# Configure NixOS
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
# Boot Parameters
|
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" "wl" ];
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
|
|
|
# Filesystems
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
|
|
fsType = "ext4";
|
|
};
|
|
boot.initrd.luks.devices."luks-00000000-0000-0000-0000-000000000000".device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/0000-0000";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
};
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 4*1024;
|
|
}
|
|
];
|
|
|
|
# Network
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# Hardware
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
# Virtual Machine Configuration
|
|
virtualisation.vmVariant = {
|
|
# following configuration is added only when building VM with build-vm
|
|
virtualisation = {
|
|
memorySize = 4*1024;
|
|
cores = 3;
|
|
};
|
|
};
|
|
|
|
}
|