2025-05-18 21:41:41 +08:00
|
|
|
|
# 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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2025-06-19 11:17:59 +08:00
|
|
|
|
# NEEDS MORE TESTING WITH NEWER KERNELS
|
2025-06-06 12:40:26 +08:00
|
|
|
|
# sound card microphone only works on this, so far...
|
|
|
|
|
# 6.14 and 6.12 it is broken
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
2025-05-19 17:16:27 +08:00
|
|
|
|
|
2025-06-06 12:40:26 +08:00
|
|
|
|
hardware.firmware = [ pkgs.sof-firmware ];
|
2025-06-19 11:17:59 +08:00
|
|
|
|
|
2025-06-13 16:04:53 +08:00
|
|
|
|
# for Logitech Lift mouse
|
|
|
|
|
hardware.logitech.wireless.enable = true;
|
|
|
|
|
hardware.logitech.wireless.enableGraphical = true;
|
2025-06-05 13:26:13 +08:00
|
|
|
|
|
2025-05-18 21:41:41 +08:00
|
|
|
|
fileSystems."/" =
|
2025-06-05 09:51:42 +08:00
|
|
|
|
{ device = "/dev/disk/by-uuid/27986c46-1dd1-4444-b732-7e7c36f2ed29";
|
2025-05-18 21:41:41 +08:00
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-05 09:51:42 +08:00
|
|
|
|
boot.initrd.luks.devices."luks-a803c4bc-5516-4caa-b837-60735dcef39b".device = "/dev/disk/by-uuid/a803c4bc-5516-4caa-b837-60735dcef39b";
|
2025-05-18 21:41:41 +08:00
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2025-06-05 09:51:42 +08:00
|
|
|
|
{ device = "/dev/disk/by-uuid/62BC-E36E";
|
2025-05-18 21:41:41 +08:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2025-06-05 09:51:42 +08:00
|
|
|
|
[ { device = "/dev/disk/by-uuid/ca864c9f-4435-489f-af33-2c0d5876d586"; }
|
2025-05-18 21:41:41 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2025-06-05 09:51:42 +08:00
|
|
|
|
|
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
|
|
2025-06-19 11:17:59 +08:00
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
powerOnBoot = true;
|
|
|
|
|
settings = {
|
|
|
|
|
Policy = {
|
|
|
|
|
AutoEnable = "true"; # Automatically enables Bluetooth on startup.
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-05-18 21:41:41 +08:00
|
|
|
|
}
|