add server apps
This commit is contained in:
parent
a9a8ba2a3e
commit
c7a8bb9065
4 changed files with 38 additions and 12 deletions
23
modules/apps/server.nix
Normal file
23
modules/apps/server.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue