mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos sedutil: module for setting up kernel parameters
This commit is contained in:
parent
517589f1ff
commit
c33d8f3d6d
@ -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
|
||||
|
18
nixos/modules/programs/sedutil.nix
Normal file
18
nixos/modules/programs/sedutil.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user