diff options
author | tzlil <tzlils@protonmail.com> | 2023-02-09 14:03:19 +0200 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-02-09 14:03:19 +0200 |
commit | 566dc1e8f6e619f590f017a810a8a55d9a90a25c (patch) | |
tree | 29ac3794c6b5e1ca07c8a7587c6fb14fb1ddcdb2 /hosts/vps | |
parent | b3b78ca3c15bff46eb913e7f0cfebdac71557eea (diff) |
add website (caddy) config, add mpd, add pc config, remove 9p mount from run.sh, improve greet mixin
Diffstat (limited to 'hosts/vps')
-rw-r--r-- | hosts/vps/cfg.nix | 4 | ||||
-rw-r--r-- | hosts/vps/website.nix | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/hosts/vps/cfg.nix b/hosts/vps/cfg.nix index 25da42b..3e220c3 100644 --- a/hosts/vps/cfg.nix +++ b/hosts/vps/cfg.nix @@ -9,8 +9,8 @@ config = { _module.args.nixinate = { - host = "100.67.217.90"; - sshUser = "nixos"; + host = "vps"; + sshUser = "tzlil"; buildOn = "remote"; # valid args are "local" or "remote" substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s" hermetic = false; diff --git a/hosts/vps/website.nix b/hosts/vps/website.nix new file mode 100644 index 0000000..156e5da --- /dev/null +++ b/hosts/vps/website.nix @@ -0,0 +1,15 @@ +{ pkgs, config, ... }: + +{ + config = { + services.caddy = { + enable = true; + virtualHosts."https://tzlil.club".extraConfig = '' + try_files ${pkgs.writeText "index.html" '' + hello world + ''} / + ''; + }; + networking.firewall.allowedTCPPorts = [443]; + }; +} \ No newline at end of file |