Add SSH config
This commit is contained in:
parent
1fc8b9290d
commit
e51dfb70c9
4 changed files with 7 additions and 14 deletions
|
|
@ -1,12 +1,4 @@
|
||||||
{config, ...}: {
|
{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" = {
|
home.file."${config.xdg.configHome}/eww" = {
|
||||||
source = ../fixtures/eww;
|
source = ../fixtures/eww;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
keys = [
|
keys = [
|
||||||
|
"config"
|
||||||
"id_ethnuc"
|
"id_ethnuc"
|
||||||
"id_europium"
|
"id_europium"
|
||||||
"id_github"
|
"id_github"
|
||||||
|
|
@ -12,10 +12,11 @@
|
||||||
"id_homeassistant"
|
"id_homeassistant"
|
||||||
"id_rhenium"
|
"id_rhenium"
|
||||||
];
|
];
|
||||||
in with lib.attrsets; {
|
in {
|
||||||
elements.secrets.needs = builtins.listToAttrs (
|
elements.secrets.needs = builtins.listToAttrs (
|
||||||
builtins.map
|
builtins.map
|
||||||
(key: lib.attrsets.nameValuePair key {
|
(key:
|
||||||
|
lib.attrsets.nameValuePair key {
|
||||||
rekeyFile = "ssh/${key}.age";
|
rekeyFile = "ssh/${key}.age";
|
||||||
path = "${config.home.homeDirectory}/.ssh/${key}";
|
path = "${config.home.homeDirectory}/.ssh/${key}";
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
secrets/ssh/config.age
Normal file
BIN
secrets/ssh/config.age
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue