2018-03-19 04:12:56 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.sedutil;
|
|
|
|
|
|
|
|
in {
|
2024-04-17 12:37:58 +01: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";
|
2018-03-19 04:12:56 +00:00
|
|
|
|
2024-04-17 12:37:58 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
2018-03-19 04:12:56 +00:00
|
|
|
boot.kernelParams = [
|
|
|
|
"libata.allow_tpm=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ sedutil ];
|
|
|
|
};
|
|
|
|
}
|