variables.sample.nix (657B)
1 { lib }: 2 3 let 4 fullname = "Peter"; 5 username = lib.strings.toLower fullname; 6 domain = "domain.com"; 7 email = "${username}@${domain}"; 8 sshkey = "ssh-rsa yourpubkeyhere"; 9 sshport = 2222; 10 timezone = "Europe/London"; 11 postcode = "AA1 1AA" 12 address = "123 Fake Street\n${postcode}"; 13 htpasswd = ""; # caddy hash-password --plaintext "yourpassword" | base64 -w0 14 vpnusername = ""; 15 vpnpassword = ""; 16 todosecret = "JWTtoken"; 17 privatekey = "path/to/private.key"; 18 matrixuser = ""; 19 matrixserver = ""; 20 in { 21 inherit fullname username domain email sshkey sshport timezone vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; 22 }