This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

c-base: add vpn password fact

+13 -3
+13 -3
2configs/c-base.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 - let 4 - in { 3 + { 5 4 6 5 environment.systemPackages = [ 7 6 pkgs.cifs-utils 8 7 ]; 8 + 9 + 10 + clanCore.facts.services.c-base = { 11 + secret."c-base.txt" = { }; 12 + generator.prompt = '' 13 + Please enter your username in the first line and your c-base password in the next line 14 + ''; 15 + generator.script = '' 16 + echo "$prompt_value" > "$secrets"/c-base.txt 17 + ''; 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 - auth-user-pass ${config.krebs.secret.directory}/cbase.txt 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>