mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 21:20:13 +00:00
initial refactoring
This commit is contained in:
20
platforms/nixos/modules/nmasur/profiles/no-mitigations.nix
Normal file
20
platforms/nixos/modules/nmasur/profiles/no-mitigations.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.profiles.no-mitigations;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.profiles.no-mitigations.enable = lib.mkEnableOption "remove Kernel CPU mitigations";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# WARNING: This is not secure
|
||||
boot.kernelParams = [ "mitigations=off" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user