nixos-config/modules/agenix.nix
Gabriel Arazas db5fc8269e Update user-specific config
Oh no, now I'm content with creating my own framework instead of using
something like digga or flake-utils.
2021-11-29 13:30:57 +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;
};
}