wtf is happening

This commit is contained in:
= 2024-03-12 01:43:35 -05:00
parent 91e0976cda
commit 16da7ed48b
9 changed files with 58 additions and 21 deletions

View file

@ -5,8 +5,9 @@
home.username = settings.user.username;
home.homeDirectory = "/home/${settings.user.username}";
# We always want a standard ssh key-pair used for secret management, create it if not there.
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] (import ./generate_ssh_key.nix args);
imports = ylib.umport { paths = [ ./programs ]; recursive = true; };
imports = ylib.umport {
paths = [ ./programs ];
recursive = true;
exclude = [ ./programs/ssh/generate_ssh_key.nix ];
};
}

View file

@ -0,0 +1,17 @@
{ lib, ... } @ args:
{
# We always want a standard ssh key-pair used for secret management, create it if not there.
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] (import ./generate_ssh_key.nix args);
programs.ssh = {
enable = true;
matchBlocks = {
github = {
hostname = "github.com";
# TODO lEFT OFF HERE TRYING TO GET THIS TO WORK
# identityFile = age.secrets.test1.file;
};
};
};
}

View file

@ -1,4 +1,4 @@
{ settings, ylib, ... } @ _args:
{ settings, ylib, ... }:
{
imports =
# Common settings all users share