summaryrefslogtreecommitdiff
path: root/hosts/local/master/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/local/master/hardware-configuration.nix')
-rw-r--r--hosts/local/master/hardware-configuration.nix19
1 files changed, 7 insertions, 12 deletions
diff --git a/hosts/local/master/hardware-configuration.nix b/hosts/local/master/hardware-configuration.nix
index 8439f01..a20ea6e 100644
--- a/hosts/local/master/hardware-configuration.nix
+++ b/hosts/local/master/hardware-configuration.nix
@@ -7,14 +7,12 @@
pkgs,
modulesPath,
...
-}: let
- rtl8188gu = config.boot.kernelPackages.callPackage ./rtl8188gu.nix {};
-in {
+}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
+ boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
@@ -30,18 +28,15 @@ in {
options = ["fmask=0077" "dmask=0077"];
};
+ # fileSystems."/home/y/sata" =
+ # { device = "/dev/disk/by-uuid/1f689125-e290-4904-9046-f67b51d05c6b";
+ # fsType = "ext4";
+ # };
+
swapDevices = [
{device = "/dev/disk/by-uuid/e34d7981-458b-462a-b551-007bce4f40f9";}
];
- # 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.enp4s0.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
-
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}