ssh: private host aliases via sops-provisioned include
This commit is contained in:
parent
45d23c5875
commit
c6258a77e4
2 changed files with 9 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Stub. Real values kept locally via:
|
||||
# git update-index --skip-worktree modules/private/ssh-hosts.nix
|
||||
programs.ssh.extraConfig = "";
|
||||
}
|
||||
|
|
@ -2,7 +2,15 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./private/ssh-hosts.nix ];
|
||||
# Private SSH host aliases live in sops (secrets/network.yaml: ssh-hosts)
|
||||
sops.secrets."ssh-hosts" = {
|
||||
sopsFile = "/etc/nixos/secrets/network.yaml";
|
||||
key = "ssh-hosts";
|
||||
mode = "0444";
|
||||
};
|
||||
programs.ssh.extraConfig = ''
|
||||
Include /run/secrets/ssh-hosts
|
||||
'';
|
||||
|
||||
# GPG agent
|
||||
programs.gnupg.agent = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue