70 lines
2.1 KiB
Nix
70 lines
2.1 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/310d77f1-247d-4db9-9db0-be6b70483bd8";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/9F36-9DE8";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/mnt/steam" =
|
||
{ device = "/dev/disk/by-uuid/f800bb63-5798-4faa-b2d2-50073215e391";
|
||
fsType = "ext4";
|
||
options = [ "users" "nofail" "exec" "defaults" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[ { device = "/dev/disk/by-uuid/d7fbd2b2-c943-457b-afc1-ad355d30a5c2"; }
|
||
];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
# Enable support for Corsair Scimitar
|
||
hardware.ckb-next = {
|
||
enable = true;
|
||
package = pkgs.ckb-next.overrideAttrs (old: {
|
||
cmakeFlags = (old.cmakeFlags or [ ]) ++ [ "-DUSE_DBUS_MENU=0" ];
|
||
});
|
||
};
|
||
|
||
# Enable bluetooth
|
||
hardware.bluetooth = {
|
||
enable = true;
|
||
powerOnBoot = true;
|
||
settings = {
|
||
General = {
|
||
# Shows battery charge of connected devices on supported
|
||
# Bluetooth adapters. Defaults to 'false'.
|
||
Experimental = true;
|
||
# When enabled other devices can connect faster to us, however
|
||
# the tradeoff is increased power consumption. Defaults to
|
||
# 'false'.
|
||
FastConnectable = true;
|
||
};
|
||
Policy = {
|
||
# Enable all controllers when they are found. This includes
|
||
# adapters present on start as well as adapters that are plugged
|
||
# in later on. Defaults to 'true'.
|
||
AutoEnable = true;
|
||
};
|
||
};
|
||
};
|
||
}
|