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, ...}: {
|
||||
# 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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
|||
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