init config

This commit is contained in:
2025-07-04 00:32:17 +02:00
commit 1a20402712
35 changed files with 2383 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, pkgs, modulesPath, ... }:
{
options.lumpiasty.intelCpu = lib.mkEnableOption "Enable intel CPU";
config = lib.mkIf config.lumpiasty.intelCpu {
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
# hardware.cpu.intel.updateMicrocode = true;
boot.kernelModules = [ "kvm-intel" ];
};
}
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, pkgs, modulesPath, ... }:
{
options.lumpiasty.noMitigations = lib.mkEnableOption "Disable mitigations";
config = lib.mkIf config.lumpiasty.noMitigations {
boot.kernelParams = [
"mitigations=off"
];
};
}