mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
6b481a163a
While it is easier to maintain the modules by prefixing them all with `modules`, it is not easy when used from other flakes and/or modules. This is my attempt on making it easier with appropriate namespaces. Update home-manager user from the restructure
20 lines
528 B
Nix
20 lines
528 B
Nix
# A module that automates setting up agenix for your system.
|
|
{ inputs, lib, options, config, system, ... }:
|
|
|
|
let cfg = config.profiles.agenix;
|
|
in {
|
|
options.profiles.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;
|
|
};
|
|
}
|