secrets/ssh_server.nix: init
This commit is contained in:
parent
fc56842825
commit
e063db59dc
|
@ -7,7 +7,7 @@ with lib;
|
|||
./editor/vim.nix
|
||||
./binary-cache/nixos.nix
|
||||
./minimal.nix
|
||||
./secrets
|
||||
./secrets/ssh_server.nix
|
||||
# ./security/hotfix.nix
|
||||
];
|
||||
|
||||
|
|
8
2configs/secrets/ssh_server.nix
Normal file
8
2configs/secrets/ssh_server.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
|
||||
sops.secrets."ssh_host_rsa_key" = {};
|
||||
sops.secrets."ssh_host_ed25519_key" = {};
|
||||
services.openssh.hostKeys = lib.mkForce [
|
||||
{ bits = 4096; path = (config.sops.secrets."ssh_host_rsa_key".path); type = "rsa"; }
|
||||
{ path = config.sops.secrets."ssh_host_ed25519_key".path; type = "ed25519"; } ];
|
||||
}
|
Loading…
Reference in a new issue