alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
default: use vars for ssh
author
lassulus
date
2 years ago
(Dec 5, 2024, 5:53 PM CET)
commit
19dd44fa
19dd44fa3e2d1bee0206b743f643f56c0f407956
parent
cf364ae3
cf364ae324eb1d914bd38256813bccdb39e81574
+9
-8
1 changed file
Expand all
Collapse all
Unified
Split
2configs
default.nix
+9
-8
2configs/default.nix
View file
Reviewed
···
105
105
services.openssh.enable = true;
106
106
services.openssh.hostKeys = [
107
107
{
108
108
-
path = config.clanCore.facts.services.ssh.secret."ssh.id_ed25519".path;
108
108
+
path = config.clanCore.vars.generators.ssh.files."ssh.id_ed25519".path;
109
109
type = "ed25519";
110
110
}
111
111
];
112
112
-
clanCore.facts.services.ssh = {
113
113
-
secret."ssh.id_ed25519" = { };
114
114
-
public."ssh.id_ed25519.pub" = { };
115
115
-
generator.path = with pkgs; [
112
112
+
clan.core.vars.generators.ssh = {
113
113
+
files."ssh.id_ed25519".secret = true;
114
114
+
files."ssh.id_ed25519.pub".secret = false;
115
115
+
migrateFact = "ssh";
116
116
+
runtimeInputs = with pkgs; [
116
117
coreutils
117
118
openssh
118
119
];
119
119
-
generator.script = ''
120
120
-
ssh-keygen -t ed25519 -N "" -f $secrets/ssh.id_ed25519
121
121
-
mv $secrets/ssh.id_ed25519.pub $facts/ssh.id_ed25519.pub
120
120
+
script = ''
121
121
+
ssh-keygen -t ed25519 -N "" -f $out/ssh.id_ed25519
122
122
+
mv $secrets/ssh.id_ed25519.pub $out/ssh.id_ed25519.pub
122
123
'';
123
124
};
124
125
}