added flake caldav
This commit is contained in:
parent
1c4aac6abf
commit
5e4834b90d
3 changed files with 10 additions and 12 deletions
|
|
@ -1,2 +1,7 @@
|
||||||
# My super server config
|
# My super server config
|
||||||
|
|
||||||
Documentation might come
|
Documentation might come
|
||||||
|
|
||||||
|
## updating the server
|
||||||
|
|
||||||
|
nixos-rebuild switch --target-host <stuce@vps.stuce.ch> --use-remote-sudo --flake .
|
||||||
|
|
|
||||||
|
|
@ -13,23 +13,20 @@
|
||||||
# url = "github:nix-community/home-manager";
|
# url = "github:nix-community/home-manager";
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
# };
|
# };
|
||||||
# sTodo = {
|
calDavToCsv = { url = "git+https://git.stuce.ch/stuce/calDAVtoCSV"; };
|
||||||
# url = "git+https://git.stuce.ch/stuce/sTodo";
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs,
|
outputs = { self, nixpkgs,
|
||||||
# home-manager,
|
# home-manager,
|
||||||
# nvf,
|
# nvf,
|
||||||
# sTodo,
|
calDavToCsv, ... }: {
|
||||||
... }: {
|
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = nixpkgs;
|
specialArgs = nixpkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
# nvf.nixosModules.default
|
# nvf.nixosModules.default
|
||||||
# sTodo.nixosModules.sTodo
|
calDavToCsv.nixosModules.calDavToCsv
|
||||||
# home-manager.nixosModules.home-manager
|
# home-manager.nixosModules.home-manager
|
||||||
# {
|
# {
|
||||||
# home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,12 @@ in {
|
||||||
virtualHosts."eink.${host}" = {
|
virtualHosts."eink.${host}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
# sslCertificateKey = "/etc/nginx/certs/ca.key";
|
|
||||||
# sslCertificate = "/etc/nginx/certs/ca.crt";
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
ssl_client_certificate /etc/nginx/certs/ca.crt;
|
ssl_client_certificate /etc/nginx/certs/ca.crt;
|
||||||
ssl_verify_client on;
|
ssl_verify_client on;
|
||||||
'';
|
'';
|
||||||
locations."/" = {
|
# TODO: dont hardocde ports
|
||||||
# TODO fastcgi to the script
|
locations."/" = { proxyPass = "http://127.0.0.1:8000"; };
|
||||||
extraConfig = "return 200 'handshake worked !!!';";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."vault.${host}" = {
|
virtualHosts."vault.${host}" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue