wtf is happening
This commit is contained in:
parent
91e0976cda
commit
16da7ed48b
9 changed files with 58 additions and 21 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
17
users/_common/programs/ssh/ssh.nix
Normal file
17
users/_common/programs/ssh/ssh.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ settings, ylib, ... } @ _args:
|
||||
{ settings, ylib, ... }:
|
||||
{
|
||||
imports =
|
||||
# Common settings all users share
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue