nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

variables.sample.nix (526B)


      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   htpasswd = ""; # caddy hash-password --plaintext "yourpassword" | base64 -w0
     12   vpnusername = "";
     13   vpnpassword = "";
     14   todosecret = "JWTtoken";
     15   privatekey = "path/to/private.key";
     16 in {
     17   inherit fullname username domain email sshkey sshport timezone vpnusername vpnpassword todosecret privatekey;
     18 }