Compare commits
2 Commits
4ecf5d10d6
...
14d95869a6
| Author | SHA1 | Date |
|---|---|---|
|
|
14d95869a6 | |
|
|
5bf0fb06e0 |
|
|
@ -0,0 +1,62 @@
|
||||||
|
{ 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/c2fa161a-04ab-4452-88df-81dd7d0760fc";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/run/media/ulysse-cura/Raptor1" = {
|
||||||
|
device = "/dev/disk/by-uuid/ce60cff8-ac96-4d97-87fe-58cc9d363522";
|
||||||
|
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/43AB-8A97";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/dev/disk/by-uuid/f9ec99de-8b93-405c-b2fe-56ea5069144c";
|
||||||
|
}];
|
||||||
|
|
||||||
|
# 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
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
# Hostname.
|
# Hostname
|
||||||
networking.hostName = "thinkpad-p50";
|
networking.hostName = "thinkpad-p50";
|
||||||
|
|
||||||
# Enable bluetooth
|
# Enable bluetooth
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue