Add SSH config

This commit is contained in:
Christopher Mühl 2025-08-04 18:12:10 +02:00
parent 1fc8b9290d
commit e51dfb70c9
No known key found for this signature in database
GPG key ID: E919B0F59E14FD47
4 changed files with 7 additions and 14 deletions

View file

@ -1,12 +1,4 @@
{config, ...}: {
# SSH keys and settings
# Don't copy SSH settings as they would not be readable by Docker containers
# that require them.
# home.file.".ssh" = {
# source = ../fixtures/ssh;
# recursive = true;
# };
home.file."${config.xdg.configHome}/eww" = {
source = ../fixtures/eww;
recursive = true;

View file

@ -1,10 +1,10 @@
{
pkgs,
config,
lib,
...
}: let
}: let
keys = [
"config"
"id_ethnuc"
"id_europium"
"id_github"
@ -12,16 +12,17 @@
"id_homeassistant"
"id_rhenium"
];
in with lib.attrsets; {
in {
elements.secrets.needs = builtins.listToAttrs (
builtins.map
(key: lib.attrsets.nameValuePair key {
(key:
lib.attrsets.nameValuePair key {
rekeyFile = "ssh/${key}.age";
path = "${config.home.homeDirectory}/.ssh/${key}";
symlink = false;
mode = "0600";
})
keys
);
keys
);
}

BIN
secrets/ssh/config.age Normal file

Binary file not shown.