summaryrefslogtreecommitdiff
path: root/modules/common/agenix.nix
blob: 189f80e514237264fafd7794cbeaeb9b3069404b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib) mkAliasOptionModule mkIf;
in {
  imports = [(mkAliasOptionModule ["secrets"] ["age" "secrets"])];

  age.identityPaths = [
    "/root/.ssh/id"
  ];

  environment = {
    shellAliases.ragenix = "ragenix --identity ~/.ssh/id";
    systemPackages = [
      pkgs.ragenix
    ];
  };
}