From 95ff01f8965fd3b09953c75d16c4e2e7af38aa41 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 18 Mar 2015 14:06:22 +0100 Subject: lib: Refactor kernel configuration into a module. This means, we don't have that lib directory anymore and also we're not doing text substitution on the kernel config but instead override the original attributes. However, this needs to be refactored even further, so we can use the NixOS kernel system, which allows for certain modules to require specific kernel features. That way we can automatically create a kernel config from the list of required features and we only need to set a specific base config instead of specifying the *full* kernel config. Signed-off-by: aszlig --- machines/aszlig/mmrnmhrm.nix | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'machines/aszlig/mmrnmhrm.nix') diff --git a/machines/aszlig/mmrnmhrm.nix b/machines/aszlig/mmrnmhrm.nix index e46a723b..11ec69f6 100644 --- a/machines/aszlig/mmrnmhrm.nix +++ b/machines/aszlig/mmrnmhrm.nix @@ -1,31 +1,22 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: -with pkgs.lib; -with import ../../lib; +with lib; { vuizvui.user.aszlig.profiles.workstation.enable = true; nix.maxJobs = 2; - boot = let - linuxVuizvui = pkgs.buildLinux { - inherit (pkgs.kernelSourceVuizvui) version src; - - kernelPatches = singleton pkgs.vuizvuiKernelPatches.bfqsched; - configfile = generateKConf (import ./mmrnmhrm-kconf.nix); - allowImportFromDerivation = true; - }; - in rec { - kernelPackages = pkgs.recurseIntoAttrs - (pkgs.linuxPackagesFor linuxVuizvui kernelPackages); - + boot = { loader.grub.devices = map (i: "/dev/disk/by-id/${i}") [ "ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F5756955" "ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F5790537" ]; }; + vuizvui.user.aszlig.system.kernel.enable = true; + vuizvui.user.aszlig.system.kernel.config = import ./mmrnmhrm-kconf.nix; + networking.hostName = "mmrnmhrm"; fileSystems = { -- cgit 1.4.1