home: create 'modules/home' folder

Consolidating all modules under the same path, to clear out the
top-level directory.
This commit is contained in:
Bruno BELANYI 2023-11-09 13:43:55 +00:00
parent c856933803
commit 65a8f7c481
119 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,25 @@
{ config, inputs, lib, options, ... }:
{
imports = [
inputs.agenix.homeManagerModules.age
];
config.age = {
secrets =
let
toName = lib.removeSuffix ".age";
toSecret = name: { ... }: {
file = ./. + "/${name}";
};
convertSecrets = n: v: lib.nameValuePair (toName n) (toSecret n v);
secrets = import ./secrets.nix;
in
lib.mapAttrs' convertSecrets secrets;
# Add my usual agenix key to the defaults
identityPaths = options.age.identityPaths.default ++ [
"${config.home.homeDirectory}/.ssh/agenix"
];
};
}

Binary file not shown.

View file

@ -0,0 +1,9 @@
# Common secrets
let
keys = import ../../keys;
all = builtins.attrValues keys.users;
in
{
"github/token.age".publicKeys = all;
}