extract SSH host config to a secrets repo

flake-conversion
Trolli Schmittlauch 2020-04-05 19:19:16 +02:00
parent 17b7854c03
commit 7e8695c0bd
4 changed files with 17 additions and 1 deletions

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "all-hies"]
path = all-hies
url = https://github.com/Infinisil/all-hies
[submodule "home/secrets"]
path = home/secrets
url = ssh://gitea@git.orlives.de:2342/schmittlauch/home-manager_secrets.git

View File

@ -8,7 +8,7 @@ HOMECONFIGPATH="${HOME}/.config/nixpkgs"
NIXOSCONFIGPATH="/etc/nixos"
mkdir -p "${HOMECONFIGPATH}"
for F in `find ./home -mindepth 1 -maxdepth 1`; do
for F in `find ./home -mindepth 1 -maxdepth 2`; do
ABS_F=`readlink -f "${F}"`
ln -s "$ABS_F" "${HOMECONFIGPATH}/`basename ${F}`"
done

View File

@ -243,6 +243,7 @@ let
twemoji-color-font
opensans-ttf
(iosevka.override { design = [ "slab" "term" ]; set = "serif"; })
(iosevka.override { privateBuildPlan = { design = [ "slab" "sp-term" ]; family = "Iosevka Serif"; }; set = "serif"; })
# TODO: vollkorn
# TODO: humor-sans
];
@ -293,6 +294,14 @@ in
enableSshSupport = true;
};
programs.ssh =
{
enable = true;
# ssh host config
matchBlocks =
import ./secrets/ssh_hosts.nix;
};
programs.tmux = {
enable = true;
keyMode = "vi";

1
home/secrets Submodule

@ -0,0 +1 @@
Subproject commit de07de8b76dac718ceef1258738ba2dd8fc3d3c2