Move hw modules cfg to hardware-configuration.nix's

This commit is contained in:
Henrik Lissner 2021-02-02 00:32:57 -05:00
parent 930312b650
commit be5d10a008
4 changed files with 21 additions and 20 deletions

View file

@ -46,16 +46,6 @@
emacs.enable = true; emacs.enable = true;
vim.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 = { shell = {
bitwarden.enable = true; bitwarden.enable = true;
direnv.enable = true; direnv.enable = true;

View file

@ -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 # CPU
nix.maxJobs = lib.mkDefault 16; nix.maxJobs = lib.mkDefault 16;
powerManagement.cpuFreqGovernor = "performance"; powerManagement.cpuFreqGovernor = "performance";

View file

@ -40,13 +40,6 @@
vim.enable = true; vim.enable = true;
}; };
dev = {}; dev = {};
hardware = {
audio.enable = true;
fs = {
enable = true;
ssd.enable = true;
};
};
shell = { shell = {
bitwarden.enable = true; bitwarden.enable = true;
direnv.enable = true; direnv.enable = true;
@ -54,9 +47,6 @@
gnupg.enable = true; gnupg.enable = true;
tmux.enable = true; tmux.enable = true;
zsh.enable = true; zsh.enable = true;
};
hardware = {
}; };
services = { services = {
# syncthing.enable = true; # syncthing.enable = true;

View file

@ -21,6 +21,15 @@
kernelParams = [ "mitigations=off" ]; kernelParams = [ "mitigations=off" ];
}; };
# Modules
modules.hardware = {
audio.enable = true;
fs = {
enable = true;
ssd.enable = true;
};
};
# CPU # CPU
nix.maxJobs = lib.mkDefault 8; nix.maxJobs = lib.mkDefault 8;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;