nixos-greynix/greynix/hardware-configuration.nix

48 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2024-11-10 15:47:39 +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 = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7f9595fb-2076-4f33-8834-ce8485bfc56f";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-1ead6344-6826-436d-9ff8-daa75571966a".device = "/dev/disk/by-uuid/1ead6344-6826-436d-9ff8-daa75571966a";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7361-5788";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/f529a3f7-ceb2-453c-99b3-583e84cf4172"; }
];
# 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;
2024-12-05 18:57:12 +08:00
# bluetooth
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
2024-11-10 15:47:39 +08:00
}