mirror of
https://github.com/tboerger/nixos-config
synced 2024-06-01 22:46:04 +02:00
29 lines
403 B
Nix
29 lines
403 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.services.haveged;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
services = {
|
|
haveged = {
|
|
enable = mkEnableOption "Haveged" // {
|
|
default = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
haveged = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|