mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Security/Encryption] init encryption security module
This commit is contained in:
parent
1d5e9a0100
commit
ecca71149a
2 changed files with 21 additions and 0 deletions
|
|
@ -2,5 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardening.nix
|
./hardening.nix
|
||||||
|
./encryption.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
security/encryption.nix
Normal file
20
security/encryption.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.aviallon.security.encryption;
|
||||||
|
in {
|
||||||
|
options.aviallon.security.encryption = {
|
||||||
|
enable = mkEnableOption "encryption-related tools and programs";
|
||||||
|
cryptsetup.package = mkOption {
|
||||||
|
description = "Which cryptsetup package to use";
|
||||||
|
type = types.path;
|
||||||
|
default = pkgs.cryptsetup;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cfg.cryptsetup.package
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue