add server apps

This commit is contained in:
KoenDR06 2025-04-15 15:13:02 +02:00
parent a9a8ba2a3e
commit c7a8bb9065
4 changed files with 38 additions and 12 deletions

23
modules/apps/server.nix Normal file
View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
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
];
};
}