mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
3a022a374a
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
20 lines
527 B
Nix
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;
|
|
};
|
|
}
|