nix-config/modules/apps/server.nix

21 lines
358 B
Nix

{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.apps.server;
in {
options = {
horseman.apps.server = {
enable = mkEnableOption "Apps that only need to be installed on servers";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
certbot
];
};
}