]> gitweb.ps.run Git - chirp/commitdiff
update flake
authorpatrick-scho <patrick.schoenberger@posteo.de>
Sun, 13 Apr 2025 19:57:13 +0000 (21:57 +0200)
committerpatrick-scho <patrick.schoenberger@posteo.de>
Sun, 13 Apr 2025 19:57:13 +0000 (21:57 +0200)
flake.lock
flake.nix

index 169458f06b7434a43eb04e8adfd93863bc01f880..90c914452b6b7f84c8fccb61d25ccd2883117107 100644 (file)
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1744232761,
-        "narHash": "sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U=",
+        "lastModified": 1744463964,
+        "narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "f675531bc7e6657c10a18b565cfebd8aa9e24c14",
+        "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
         "type": "github"
       },
       "original": {
index cef0b0f6b61416d58553bad6ba0219a27367a870..3444d104a79e43d2873a10a5cc86ce241a4f4092 100644 (file)
--- a/flake.nix
+++ b/flake.nix
           type = "app";
           program = "${self.packages.${system}.default}/bin/chirp";
         };
-      })
-      // {
-        nixosModules.default = { config, lib, pkgs, ... }: {
-          options.services.chirp = {
-            enable = lib.mkEnableOption "Enable Chirp";
-
-            port = lib.mkOption {
-              type = lib.types.port;
-              default = 8080;
-              description = "Port to listen on";
-            };
-          };
-
-          config = lib.mkIf config.services.chirp.enable {
-            systemd.services.chirp = {
-              description = "Chirp SystemD Service";
-              wantedBy = ["multi-user.target"];
-              after = ["network.target"];
-              serviceConfig = {
-                ExecStart = "${self.packages.${pkgs.system}.default}/bin/chirp";
-                Restart = "always";
-                Type = "simple";
-                DynamicUser = "yes";
-              };
-              environment = {
-                PORT = toString config.services.chirp.port;
-              };
-            };
-          };
-        };
-      };
+      });
 }