Compare commits
No commits in common. "befadf8ed215431ad7529a08e77eabf293328ab9" and "228cbf373480b5c2d90823d43699952727a8fa3c" have entirely different histories.
befadf8ed2
...
228cbf3734
2 changed files with 5 additions and 32 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -377,11 +377,11 @@
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713776544,
|
"lastModified": 1713107869,
|
||||||
"narHash": "sha256-EQW8P1TfkYQV0EEK1n3Gh9wRp9KlC0EbidH2j+niCaE=",
|
"narHash": "sha256-TniJoCQfJ3OXrcqhH/8xcV6o4Sa5C/4KSRtk0c0/RK4=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "61410d68f15b3b970067a3fdd39667fdd9a89edd",
|
"rev": "a00a07cd931b6eab722727a0606837cb895997f0",
|
||||||
"revCount": 12,
|
"revCount": 11,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://forgejo@git.everest.sable-pancake.ts.net:4222/Toast/nix-secrets"
|
"url": "ssh://forgejo@git.everest.sable-pancake.ts.net:4222/Toast/nix-secrets"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,10 @@
|
||||||
{
|
{...}: {
|
||||||
flakeSelf,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
hostSecrets = "${flakeSelf.inputs.secrets}/" + config.networking.hostName + "/";
|
|
||||||
hostKeyPath = "/etc/ssh/everest_host_key";
|
|
||||||
in {
|
|
||||||
age.secrets = {
|
|
||||||
everest-host-key = {
|
|
||||||
file = hostSecrets + "host-private-key.age";
|
|
||||||
path = hostKeyPath;
|
|
||||||
mode = "0400";
|
|
||||||
};
|
|
||||||
"everest-host-key.pub" = {
|
|
||||||
file = hostSecrets + "host-public-key.age";
|
|
||||||
path = hostKeyPath + ".pub";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
UseDns = true;
|
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
hostKeys = [
|
|
||||||
{
|
|
||||||
path = hostKeyPath;
|
|
||||||
type = "ed25519";
|
|
||||||
comment = "Everest host key";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue