diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index e7f28c670bed..adaab86b3af6 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -100,6 +100,7 @@ ./programs/qt5ct.nix ./programs/rootston.nix ./programs/screen.nix + ./programs/sedutil.nix ./programs/slock.nix ./programs/shadow.nix ./programs/shell.nix 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 ]; + }; +}