]> gitweb.ps.run Git - flake_server/blobdiff - configuration.nix
update
[flake_server] / configuration.nix
index 3015dc83d33b0a43af4f4e0401675e1ddda9f4c2..4c1a2bac6d1ef467da1c267f98126a0bfdac7d2d 100644 (file)
@@ -19,6 +19,7 @@
   # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
 
   nix.settings.experimental-features = [ "nix-command" "flakes" ];
   # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
 
   nix.settings.experimental-features = [ "nix-command" "flakes" ];
+  nix.package = pkgs.nixVersions.nix_2_28;
 
   networking.hostName = "nixos"; # Define your hostname.
   # Pick only one of the below networking options.
 
   networking.hostName = "nixos"; # Define your hostname.
   # Pick only one of the below networking options.
@@ -27,7 +28,7 @@
 
   networking.firewall = {
     enable = true;
 
   networking.firewall = {
     enable = true;
-    allowedTCPPorts = [ 80 443 ];
+    allowedTCPPorts = [ 80 443 9418 ];
   };
 
   # Set your time zone.
   };
 
   # Set your time zone.
@@ -48,9 +49,6 @@
   # Enable the X11 windowing system.
   # services.xserver.enable = true;
 
   # Enable the X11 windowing system.
   # services.xserver.enable = true;
 
-
-  
-
   # Configure keymap in X11
   # services.xserver.xkb.layout = "us";
   # services.xserver.xkb.options = "eurosign:e,caps:escape";
   # Configure keymap in X11
   # services.xserver.xkb.layout = "us";
   # services.xserver.xkb.options = "eurosign:e,caps:escape";
     enable = true;
     config = {
       init.defaultBranch = "main";
     enable = true;
     config = {
       init.defaultBranch = "main";
+      user.name = "Patrick";
+      user.email = "patrick.schoenberger@posteo.de";
     };
   };
 
     };
   };
 
 
   services.caddy = {
     enable = true;
 
   services.caddy = {
     enable = true;
+    virtualHosts."psch.dev".extraConfig = ''
+      respond hello :D
+    '';
     virtualHosts."chirp.psch.dev".extraConfig = ''
     virtualHosts."chirp.psch.dev".extraConfig = ''
-      reverse_proxy http://127.0.0.1:8080
+      reverse_proxy http://localhost:8080
       tls {
         protocols tls1.3 tls1.3
       }
     '';
       tls {
         protocols tls1.3 tls1.3
       }
     '';
-    virtualHosts."git.psch.dev".extraConfig = ''
-      reverse_proxy http://127.0.0.1:3000
-    '';
   };
 
   };
 
+  services.dbus.enable = true;
+
+    # virtualHosts."git.psch.dev".extraConfig = ''
+    #   reverse_proxy unix//run/fcgiwrap.socket {
+    #     transport fastcgi {
+    #       split .cgi
+    #     }
+    #   }
+    # '';
+
+  # services.chirp = {
+  #   enable = true;
+  # };
+
+  # services."cgit".cgit = {
+  #   enable = true;
+  #   scanPath = "/srv/git";
+  # };
+
   # Open ports in the firewall.
   # networking.firewall.allowedTCPPorts = [ ... ];
   # networking.firewall.allowedUDPPorts = [ ... ];
   # Open ports in the firewall.
   # networking.firewall.allowedTCPPorts = [ ... ];
   # networking.firewall.allowedUDPPorts = [ ... ];