66 lines
1.8 KiB
Nix
66 lines
1.8 KiB
Nix
{ config, lib, modulesPath, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
# Hostname
|
|
networking.hostName = "asus-desktop";
|
|
|
|
# Bootloader and boot options
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
# Filesystems
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/a5e83de6-dae6-464f-8afe-80ec674477e2";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/run/media/ulysse-cura/Raptor1" = {
|
|
device = "/dev/disk/by-uuid/ac22ba06-e1c0-42da-95ba-556cb0babde5";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/run/media/ulysse-cura/Raptor2" = {
|
|
device = "/dev/disk/by-uuid/7d8a3d40-7bce-47c6-8cbe-8af05abfd8b3";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/E75D-4244";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
};
|
|
|
|
swapDevices = [{
|
|
device = "/dev/disk/by-uuid/f29f029f-fa9e-4eb4-b14a-18183dde4842";
|
|
}];
|
|
|
|
# Platform misc
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
# Enable and configure nvidia graphics drivers
|
|
hardware.graphics.enable = true;
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia.open = false;
|
|
hardware.nvidia.modesetting.enable = true;
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
|
hardware.graphics.extraPackages = with pkgs; [
|
|
vulkan-loader
|
|
vulkan-validation-layers
|
|
vulkan-extension-layer
|
|
];
|
|
|
|
# Multi-screen configuration
|
|
environment.etc."xdg/monitors.xml".source = ./monitors.xml;
|
|
}
|