abouttreesummaryrefslogcommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorpatrick-scho2025-04-13 21:57:13 +0200
committerpatrick-scho2025-04-13 21:57:13 +0200
commit39cb6149b2b7d8182dea622022e916824f1fc031 (patch)
tree0f6a8890806752b771b468a5732c6bd113deee55 /flake.nix
parent82ffe1a0f6aa569a718a0db07a380f7f93c7f1d8 (diff)
downloadchirp-39cb6149b2b7d8182dea622022e916824f1fc031.tar.gz
chirp-39cb6149b2b7d8182dea622022e916824f1fc031.zip
update flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix32
1 files changed, 1 insertions, 31 deletions
diff --git a/flake.nix b/flake.nix
index cef0b0f..3444d10 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,36 +30,6 @@
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;
- };
- };
- };
- };
- };
+ });
}