From be5d10a008927bc2aad2717a3605057c4d719419 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 2 Feb 2021 00:32:57 -0500 Subject: [PATCH] Move hw modules cfg to hardware-configuration.nix's --- hosts/kuro/default.nix | 10 ---------- hosts/kuro/hardware-configuration.nix | 12 ++++++++++++ hosts/shiro/default.nix | 10 ---------- hosts/shiro/hardware-configuration.nix | 9 +++++++++ 4 files changed, 21 insertions(+), 20 deletions(-) diff --git a/hosts/kuro/default.nix b/hosts/kuro/default.nix index b39a02a7..ed972261 100644 --- a/hosts/kuro/default.nix +++ b/hosts/kuro/default.nix @@ -46,16 +46,6 @@ emacs.enable = true; vim.enable = true; }; - hardware = { - audio.enable = true; - ergodox.enable = true; - fs = { - enable = true; - ssd.enable = true; - }; - nvidia.enable = true; - sensors.enable = true; - }; shell = { bitwarden.enable = true; direnv.enable = true; diff --git a/hosts/kuro/hardware-configuration.nix b/hosts/kuro/hardware-configuration.nix index bd9f04c4..361c42ba 100644 --- a/hosts/kuro/hardware-configuration.nix +++ b/hosts/kuro/hardware-configuration.nix @@ -17,6 +17,18 @@ ]; }; + # Modules + modules.hardware = { + audio.enable = true; + ergodox.enable = true; + fs = { + enable = true; + ssd.enable = true; + }; + nvidia.enable = true; + sensors.enable = true; + }; + # CPU nix.maxJobs = lib.mkDefault 16; powerManagement.cpuFreqGovernor = "performance"; diff --git a/hosts/shiro/default.nix b/hosts/shiro/default.nix index 8852014a..687353d1 100644 --- a/hosts/shiro/default.nix +++ b/hosts/shiro/default.nix @@ -40,13 +40,6 @@ vim.enable = true; }; dev = {}; - hardware = { - audio.enable = true; - fs = { - enable = true; - ssd.enable = true; - }; - }; shell = { bitwarden.enable = true; direnv.enable = true; @@ -54,9 +47,6 @@ gnupg.enable = true; tmux.enable = true; zsh.enable = true; - }; - hardware = { - }; services = { # syncthing.enable = true; diff --git a/hosts/shiro/hardware-configuration.nix b/hosts/shiro/hardware-configuration.nix index 8e12e830..d27402eb 100644 --- a/hosts/shiro/hardware-configuration.nix +++ b/hosts/shiro/hardware-configuration.nix @@ -21,6 +21,15 @@ kernelParams = [ "mitigations=off" ]; }; + # Modules + modules.hardware = { + audio.enable = true; + fs = { + enable = true; + ssd.enable = true; + }; + }; + # CPU nix.maxJobs = lib.mkDefault 8; hardware.cpu.intel.updateMicrocode = true;