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
c-base: add vpn password fact
author
lassulus
date
2 years ago
(May 11, 2024, 11:34 PM CEST)
commit
5204d5fb
5204d5fb2968838d86a55ffb2f9013c3f255193f
parent
4f84e753
4f84e753d196c1c16a225474ca16369b66e350de
+13
-3
1 changed file
Expand all
Collapse all
Unified
Split
2configs
c-base.nix
+13
-3
2configs/c-base.nix
View file
Reviewed
···
1
1
{ config, lib, pkgs, ... }:
2
2
3
3
-
let
4
4
-
in {
3
3
+
{
5
4
6
5
environment.systemPackages = [
7
6
pkgs.cifs-utils
8
7
];
8
8
+
9
9
+
10
10
+
clanCore.facts.services.c-base = {
11
11
+
secret."c-base.txt" = { };
12
12
+
generator.prompt = ''
13
13
+
Please enter your username in the first line and your c-base password in the next line
14
14
+
'';
15
15
+
generator.script = ''
16
16
+
echo "$prompt_value" > "$secrets"/c-base.txt
17
17
+
'';
18
18
+
};
9
19
10
20
systemd.network.networks.c-base = {
11
21
matchConfig.Name = "c-base";
···
44
54
# register-dns
45
55
# block-outside-dns
46
56
script-security 2
47
47
-
auth-user-pass ${config.krebs.secret.directory}/cbase.txt
57
57
+
auth-user-pass ${config.clanCore.facts.services.c-base.secret."c-base.txt".path}
48
58
#auth-user-pass
49
59
key-direction 1
50
60
<tls-auth>