nixos-config/modules/nixos/agenix.nix
Gabriel Arazas efc578e961 Update modules
- Add `modules.desktop.cleanup` for the usual cleanup activties in
  NixOS.
- Update to proper descriptions for module options added with
  `lib.mkEnableOption`.
- Additional packages for various modules.
- Deleted `modules/home-manager/alacritty`. It is pretty useless though.
  :(
2021-12-11 13:16:45 +08:00

20 lines
526 B
Nix

# A module that automates setting up agenix for your system.
{ inputs, lib, options, config, system, ... }:
let cfg = config.modules.agenix;
in {
options.modules.agenix.enable =
lib.mkEnableOption "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;
};
}