nixos-config/modules/nixos/agenix.nix
Gabriel Arazas 3a022a374a Restructure the modules
I think this is better for separating modules explicitly. This is also
considered as there are similar objects between modules (e.g., NixOS
and home-manager modules and users).

Revert users module to old position
2021-12-06 17:03:39 +08:00

20 lines
527 B
Nix

# A module that automates setting up agenix for your system.
{ inputs, lib, options, config, ... }:
let cfg = config.modules.agenix;
in {
options.modules.agenix.enable =
lib.mkEnableOption "Automate agenix-related config on your system";
imports = [ inputs.agenix.nixosModules.age ];
config = lib.mkIf cfg.enable {
# Enable all relevant services.
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.sshd.enable = true;
services.openssh.enable = true;
};
}