summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-05-16 12:39:06 +0800
committerGitHub <noreply@github.com>2018-05-16 12:39:06 +0800
commit7f27566efd3058ae56a21e85b2ababd1fc65fda2 (patch)
treee1bc217400fb809276dce70a4609e2383f83473e /nixos/modules/programs
parenta0f7ee0e60c27b2759ff64c43836f9ec09aac914 (diff)
parentc33d8f3d6dd4fbf5fc943187e75a3bad15e9e3e8 (diff)
downloadnixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar.gz
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar.bz2
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar.lz
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar.xz
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.tar.zst
nixlib-7f27566efd3058ae56a21e85b2ababd1fc65fda2.zip
Merge pull request #40581 from peterhoeg/p/sedutil
sedutil: init at 1.15.1 and corresponding nixos module
Diffstat (limited to 'nixos/modules/programs')
-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 000000000000..7efc80f4abba
--- /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 ];
+  };
+}