alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
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
1
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
1
Pipelines
tor-ssh: migrate to vars
author
lassulus
date
2 years ago
(Dec 10, 2024, 6:55 PM CET)
commit
88e4e2c0
88e4e2c01ae6a4744252d714f52d97e56dc16ceb
parent
76e25b6b
76e25b6b41853736161ef63551fe88e85f6c7585
+8
-7
1 changed file
Expand all
Collapse all
Unified
Split
2configs
tor-ssh.nix
+8
-7
2configs/tor-ssh.nix
View file
Reviewed
···
16
16
client.enable = true;
17
17
};
18
18
19
19
-
clanCore.facts.services.tor-ssh = {
20
20
-
secret."ssh-tor.priv" = { };
21
21
-
secret."tor-hostname" = { };
22
22
-
generator.path = with pkgs; [
19
19
+
clanCore.vars.generators.tor-ssh = {
20
20
+
files."ssh-tor.priv" = { };
21
21
+
files."tor-hostname".deploy = false;
22
22
+
migrateFact = "tor-ssh";
23
23
+
runtimeInputs = with pkgs; [
23
24
coreutils
24
25
mkp224o
25
26
];
26
26
-
generator.script = ''
27
27
+
script = ''
27
28
mkp224o-donna lass -n 1 -d . -q -O addr
28
28
-
mv "$(cat addr)"/hs_ed25519_secret_key "$secrets"/ssh-tor.priv
29
29
-
mv addr "$secrets"/tor-hostname
29
29
+
mv "$(cat addr)"/hs_ed25519_secret_key "$out"/ssh-tor.priv
30
30
+
mv addr "$out"/tor-hostname
30
31
'';
31
32
};
32
33
}