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