From 915a87b1b47e165da5c937742b56f60c7a6b1699 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Jan 2020 16:32:29 -0500 Subject: [PATCH] Add aka's hardware-config --- hosts/aka/default.nix | 7 ++++--- hosts/aka/hardware-configuration.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 hosts/aka/hardware-configuration.nix diff --git a/hosts/aka/default.nix b/hosts/aka/default.nix index 54da94b3..d6a5f92f 100644 --- a/hosts/aka/default.nix +++ b/hosts/aka/default.nix @@ -3,10 +3,11 @@ { config, ... }: { imports = [ - ./. # import common settings - + ../personal.nix # common settings + ./hardware-configuration.nix + ## Apps - + ## Services # diff --git a/hosts/aka/hardware-configuration.nix b/hosts/aka/hardware-configuration.nix new file mode 100644 index 00000000..37ffdd5b --- /dev/null +++ b/hosts/aka/hardware-configuration.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: +{ + imports = [ + + ]; + + boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" "wl" ]; + boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; + + ## CPU + nix.maxJobs = lib.mkDefault 2; + + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/nixos"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + "/boot" = { + device = "/dev/disk/by-uuid/boot"; + fsType = "vfat"; + }; + }; + swapDevices = [{ device = "/dev/disk/by-uuid/swap"; }]; +}