mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
ssh config (nas and hedgehog)
This commit is contained in:
parent
f423383ca2
commit
e3c872513c
1
assets/ssh/hedgehog.pub
Normal file
1
assets/ssh/hedgehog.pub
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP2bFyRVKNc0gr3TXW8wRXXkD0k/OkzsI3vpgrA1YV1p root@yodaHedgehog
|
@ -1 +0,0 @@
|
|||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJi1BMzoSM0msvtKwoOzySYuKTpFCAanHYWQjL0tZhDI root@odroid
|
|
@ -28,8 +28,8 @@ in
|
|||||||
instance = "remote-backup-ssd";
|
instance = "remote-backup-ssd";
|
||||||
enable = false;
|
enable = false;
|
||||||
lz4 = false;
|
lz4 = false;
|
||||||
ssh_identity = "/mnt/backup/rootNas_ed25519";
|
ssh_identity = "/root/.ssh/rootNas_ed25519";
|
||||||
volume = "ssh://rootnas/jc-data";
|
volume = "ssh://rootNas/jc-data";
|
||||||
snapshot_dir = "/snap";
|
snapshot_dir = "/snap";
|
||||||
target = "/mnt/backup/snap";
|
target = "/mnt/backup/snap";
|
||||||
subvolume = ssd-subvolumes;
|
subvolume = ssd-subvolumes;
|
||||||
@ -38,8 +38,8 @@ in
|
|||||||
instance = "remote-backup-hdd";
|
instance = "remote-backup-hdd";
|
||||||
enable = false;
|
enable = false;
|
||||||
lz4 = false;
|
lz4 = false;
|
||||||
ssh_identity = "/mnt/backup/rootNas_ed25519";
|
ssh_identity = "/root/.ssh/rootNas_ed25519";
|
||||||
volume = "ssh://rootnas/mnt/data/jc-data";
|
volume = "ssh://rootNas/mnt/data/jc-data";
|
||||||
snapshot_dir = "/mnt/data/snap2";
|
snapshot_dir = "/mnt/data/snap2";
|
||||||
target = "/mnt/backup/snap2";
|
target = "/mnt/backup/snap2";
|
||||||
subvolume = hdd-subvolumes;
|
subvolume = hdd-subvolumes;
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#../../modules/git.nix
|
#../../modules/git.nix
|
||||||
../../modules/zsh.nix
|
../../modules/zsh.nix
|
||||||
#../../modules/ssh-client.nix
|
#../../modules/ssh-client.nix
|
||||||
|
./ssh-client-root.nix
|
||||||
../../modules/ssh-server.nix
|
../../modules/ssh-server.nix
|
||||||
|
|
||||||
../../modules/sendmail-mta.nix
|
../../modules/sendmail-mta.nix
|
||||||
|
21
hosts/yodaHedgehog/ssh-client-root.nix
Normal file
21
hosts/yodaHedgehog/ssh-client-root.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.root = { osConfig, config, pkgs, ... }: {
|
||||||
|
|
||||||
|
# SSH client configuration.
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
userKnownHostsFile = "~/.ssh/known_hosts ${../../assets/ssh/known_hosts}";
|
||||||
|
matchBlocks = {
|
||||||
|
"rootNas" = {
|
||||||
|
hostname = "p1st.de";
|
||||||
|
user = "root";
|
||||||
|
port = 2222;
|
||||||
|
compression = false;
|
||||||
|
identityFile = "~/.ssh/rootNas_ed25519";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
@ -275,7 +275,7 @@ volume ssh://rootNas/jc-data
|
|||||||
subvolume recipe.privacy1st.de
|
subvolume recipe.privacy1st.de
|
||||||
subvolume traggo.privacy1st.de
|
subvolume traggo.privacy1st.de
|
||||||
volume ssh://rootNas/mnt/data/jc-data
|
volume ssh://rootNas/mnt/data/jc-data
|
||||||
snapshot_dir /mnt/data/snap
|
snapshot_dir /mnt/data/snap2
|
||||||
target /mnt/backup/snap2
|
target /mnt/backup/snap2
|
||||||
subvolume cloud.privacy1st.de
|
subvolume cloud.privacy1st.de
|
||||||
subvolume cloud.media-kollektiv.eu
|
subvolume cloud.media-kollektiv.eu
|
||||||
|
@ -24,4 +24,9 @@ in
|
|||||||
/* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */
|
/* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
|
home-manager.users.root = { osConfig, config, pkgs, ... }: {
|
||||||
|
/* The home.stateVersion option does not have a default and must be set */
|
||||||
|
/* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */
|
||||||
|
home.stateVersion = "23.05";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
(builtins.readFile ../assets/ssh/nitrokey.pub)
|
(builtins.readFile ../assets/ssh/nitrokey.pub)
|
||||||
] ++ (
|
] ++ (
|
||||||
if (config.networking.hostName == "yodaNas")
|
if (config.networking.hostName == "yodaNas")
|
||||||
then [(builtins.readFile ../assets/ssh/pi3bplus.pub)]
|
then [(builtins.readFile ../assets/ssh/hedgehog.pub)]
|
||||||
else []
|
else []
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user