deploy work ssh keys using homenix

closes #16
This commit is contained in:
Pim Kunis 2023-10-16 10:59:27 +02:00
parent b3e8280f4e
commit 1da1b8422b
6 changed files with 25 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
imports = [
@ -45,12 +45,18 @@
xdg.userDirs.enable = true;
# homeage = {
# identityPaths = [ "/home/pim/Downloads/rage/homeage-test/identity.txt" ];
# installationType = "systemd";
# file."helloworld" = {
# source = ./homeage-test/source.txt.age;
# symlinks = [ "/home/pim/Downloads/rage/homeage-test/result2.txt" ];
# };
# };
homeage = {
identityPaths = [ "/home/pim/.ssh/age_ed25519" ];
installationType = "systemd";
file."sue_ed25519" = {
source = ../secrets/sue_ed25519.age;
symlinks = [ "${config.home.homeDirectory}/.ssh/sue_ed25519" ];
};
file."sue_azure_rsa" = {
source = ../secrets/sue_azure_rsa.age;
symlinks = [ "${config.home.homeDirectory}/.ssh/sue_azure_rsa" ];
};
};
}

View file

@ -9,7 +9,7 @@
matchBlocks = {
gitlab-sue = lib.hm.dag.entryBefore [ "*" ] {
hostname = "gitlab.com";
identityFile = "~/.ssh/sue/id_ed25519";
identityFile = "~/.ssh/sue_ed25519";
identitiesOnly = true;
};
github = lib.hm.dag.entryBefore [ "*" ] {