Browse Source

extract SSH host config to a secrets repo

mainline
Trolli Schmittlauch 2 years ago
parent
commit
7e8695c0bd
  1. 6
      .gitmodules
  2. 2
      create_symlinks.sh
  3. 9
      home/home.nix
  4. 1
      home/secrets

6
.gitmodules

@ -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

2
create_symlinks.sh

@ -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

9
home/home.nix

@ -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

@ -0,0 +1 @@
Subproject commit de07de8b76dac718ceef1258738ba2dd8fc3d3c2
Loading…
Cancel
Save