2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.sedutil;
|
|
|
|
|
|
|
|
in {
|
2024-05-15 15:35:15 +00:00
|
|
|
options.programs.sedutil.enable = lib.mkEnableOption "sedutil, to manage self encrypting drives that conform to the Trusted Computing Group OPAL 2.0 SSC specification";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
boot.kernelParams = [
|
|
|
|
"libata.allow_tpm=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ sedutil ];
|
|
|
|
};
|
|
|
|
}
|