summary refs log tree commit diff
path: root/nixos/modules/programs/sedutil.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/programs/sedutil.nix')
-rw-r--r--nixos/modules/programs/sedutil.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/modules/programs/sedutil.nix b/nixos/modules/programs/sedutil.nix
new file mode 100644
index 00000000000..7efc80f4abb
--- /dev/null
+++ b/nixos/modules/programs/sedutil.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  cfg = config.programs.sedutil;
+
+in {
+  options.programs.sedutil.enable = mkEnableOption "sedutil";
+
+  config = mkIf cfg.enable {
+    boot.kernelParams = [
+      "libata.allow_tpm=1"
+    ];
+
+    environment.systemPackages = with pkgs; [ sedutil ];
+  };
+}