added flake caldav

This commit is contained in:
Stuce 2025-11-16 11:08:06 +01:00
parent 1c4aac6abf
commit 5e4834b90d
3 changed files with 10 additions and 12 deletions

View file

@ -1,2 +1,7 @@
# My super server config
Documentation might come
## updating the server
nixos-rebuild switch --target-host <stuce@vps.stuce.ch> --use-remote-sudo --flake .

View file

@ -13,23 +13,20 @@
# url = "github:nix-community/home-manager";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# sTodo = {
# url = "git+https://git.stuce.ch/stuce/sTodo";
# };
calDavToCsv = { url = "git+https://git.stuce.ch/stuce/calDAVtoCSV"; };
};
outputs = { self, nixpkgs,
# home-manager,
# nvf,
# sTodo,
... }: {
calDavToCsv, ... }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = nixpkgs;
modules = [
./configuration.nix
# nvf.nixosModules.default
# sTodo.nixosModules.sTodo
calDavToCsv.nixosModules.calDavToCsv
# home-manager.nixosModules.home-manager
# {
# home-manager.useGlobalPkgs = true;

View file

@ -35,16 +35,12 @@ in {
virtualHosts."eink.${host}" = {
forceSSL = true;
enableACME = true;
# sslCertificateKey = "/etc/nginx/certs/ca.key";
# sslCertificate = "/etc/nginx/certs/ca.crt";
extraConfig = ''
ssl_client_certificate /etc/nginx/certs/ca.crt;
ssl_verify_client on;
'';
locations."/" = {
# TODO fastcgi to the script
extraConfig = "return 200 'handshake worked !!!';";
};
# TODO: dont hardocde ports
locations."/" = { proxyPass = "http://127.0.0.1:8000"; };
};
virtualHosts."vault.${host}" = {