From 31074d797c62f64009375e60b15d4b55a8937cab Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 29 Oct 2015 01:09:54 +0100 Subject: tv config: split stuff into fs and hw --- tv/2configs/hw/AO753.nix | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tv/2configs/hw/AO753.nix (limited to 'tv/2configs/hw/AO753.nix') diff --git a/tv/2configs/hw/AO753.nix b/tv/2configs/hw/AO753.nix new file mode 100644 index 00000000..acd9ee32 --- /dev/null +++ b/tv/2configs/hw/AO753.nix @@ -0,0 +1,46 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ../smartd.nix + ]; + + boot.loader.grub = { + device = "/dev/sda"; + splashImage = null; + }; + + boot.initrd.availableKernelModules = [ + "ahci" + ]; + + boot.kernelModules = [ + "kvm-intel" + "wl" + ]; + + boot.extraModulePackages = [ + config.boot.kernelPackages.broadcom_sta + ]; + + networking.wireless.enable = true; + + nix = { + buildCores = 2; + maxJobs = 2; + daemonIONiceLevel = 1; + daemonNiceLevel = 1; + }; + + services.logind.extraConfig = '' + HandleHibernateKey=ignore + HandleLidSwitch=ignore + HandlePowerKey=ignore + HandleSuspendKey=ignore + ''; + + nixpkgs.config = { + allowUnfree = false; + allowUnfreePredicate = (x: pkgs.lib.hasPrefix "broadcom-sta-" x.name); + }; +} -- cgit v1.2.3