From 15c78d7a168ea4445057679d427670222c41cb85 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Jan 2020 16:29:43 -0500 Subject: [PATCH] Add ao's hardware-config --- hosts/ao/default.nix | 11 ++++++----- hosts/ao/hardware-configuration.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 hosts/ao/hardware-configuration.nix diff --git a/hosts/ao/default.nix b/hosts/ao/default.nix index a7c458d1..bf35d710 100644 --- a/hosts/ao/default.nix +++ b/hosts/ao/default.nix @@ -3,15 +3,16 @@ { pkgs, config, ... }: { imports = [ - ./. # import common settings - + ../personal.nix + ./hardware-configuration.nix + ## Apps + + + ## Services - - - ]; networking.networkmanager.enable = true; diff --git a/hosts/ao/hardware-configuration.nix b/hosts/ao/hardware-configuration.nix new file mode 100644 index 00000000..d137c41a --- /dev/null +++ b/hosts/ao/hardware-configuration.nix @@ -0,0 +1,28 @@ +{ config, lib, ... }: +{ + imports = [ + + ]; + + boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" "wl" ]; + boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; + + ## CPU + nix.maxJobs = lib.mkDefault 2; + + ## Harddrives + fileSystems = { + "/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + "/boot" = { + device = "/dev/disk/by-label/boot"; + fsType = "vfat"; + }; + }; + swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; +}