108 lines
2.8 KiB
Nix
108 lines
2.8 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")
|
||
];
|
||
|
||
wireless = {
|
||
wifi.enable = true;
|
||
bluetooth.enable = true;
|
||
};
|
||
|
||
services.logind = {
|
||
lidSwitch = "ignore";
|
||
powerKey = "suspend";
|
||
};
|
||
|
||
boot = {
|
||
kernelModules = ["kvm-intel"];
|
||
extraModulePackages = [];
|
||
kernelParams = [
|
||
"i915.enable_guc=2"
|
||
"i915.enable_fbc=1"
|
||
"i915.enable_psr=2"
|
||
];
|
||
initrd = {
|
||
luks.devices."luks-149371a0-a41f-4c43-8935-cb199508c66a".device = "/dev/disk/by-uuid/149371a0-a41f-4c43-8935-cb199508c66a";
|
||
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" "rtsx_pci_sdmmc"];
|
||
kernelModules = ["i915"];
|
||
};
|
||
};
|
||
|
||
fileSystems = {
|
||
"/" = {
|
||
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@nixos,compress=zstd"];
|
||
};
|
||
|
||
"/home" = {
|
||
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=home,compress=zstd"];
|
||
};
|
||
|
||
"/storage" = {
|
||
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@storage,compress=zstd"];
|
||
};
|
||
|
||
"/boot" = {
|
||
device = "/dev/disk/by-uuid/F195-F7C0";
|
||
fsType = "vfat";
|
||
options = ["umask=0077"];
|
||
};
|
||
};
|
||
|
||
swapDevices = [];
|
||
|
||
networking.useDHCP = lib.mkDefault true;
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
services.thermald.enable = true;
|
||
services.upower.enable = true;
|
||
powerManagement.powertop.enable = true;
|
||
|
||
services.udev.extraHwdb = ''
|
||
evdev:input:b0011v0001p0001eAB83*
|
||
KEYBOARD_KEY_d5=sysrq
|
||
KEYBOARD_KEY_d4=leftmeta
|
||
KEYBOARD_KEY_95=brightnessdown
|
||
KEYBOARD_KEY_91=brightnessup
|
||
'';
|
||
|
||
services.keyd = {
|
||
enable = true;
|
||
keyboards = {
|
||
default = {
|
||
ids = ["0001:0001"];
|
||
settings = {
|
||
main = {
|
||
camera = "brightnessdown";
|
||
prog1 = "brightnessup";
|
||
# home row mods
|
||
a = "lettermod(alt, a, 200, 150)";
|
||
s = "lettermod(meta, s, 200, 150)";
|
||
d = "lettermod(control, d, 200, 150)";
|
||
f = "lettermod(shift, f, 200, 150)";
|
||
j = "lettermod(shift, j, 200, 150)";
|
||
k = "lettermod(control, k, 200, 150)";
|
||
l = "lettermod(meta, l, 200, 150)";
|
||
";" = "lettermod(alt, ;, 200, 150)";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|