nix-configs

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

variables.sample.nix (773B)


      1 { lib }:
      2 
      3 rec {
      4   user = rec {
      5     fullname = "Peter";
      6     username = lib.strings.toLower fullname;
      7     domain = "domain.com";
      8     email = "${username}@${domain}";
      9     timezone = "Europe/London";
     10     postcode = "AA1 1AA";
     11     address = "123 Fake Street\n${postcode}\n${postcode}";
     12     };
     13   secrets = {
     14     sshkey = "ssh-rsa yourpubkeyhere";
     15     sshport = 2222;
     16     htpasswd = "caddy hash-password --plaintext "yourpassword" | base64 -w0";
     17     vpnusername = "";
     18     vpnpassword = "";
     19     todosecret = "";
     20     pdfpassword = "";
     21     privatekey = "path/to/private.key";
     22     zerotier = "";
     23     };
     24   syncthing = {
     25     machine1 = "id-number-1";
     26     machine2 = "id-number-2";
     27     };
     28   matrix = {
     29     user = "@user:domain.com";
     30     homeserver = "https://matrix.domain.com";
     31     };
     32 }