Update oott-service.nix

This commit is contained in:
rzuasti
2026-01-25 11:42:39 -05:00
parent 4abd754695
commit 04b6e1553a
+8 -8
View File
@@ -8,13 +8,13 @@ with lib; let
cfg = config.services.oott; cfg = config.services.oott;
in { in {
# Service options # Service options
options.services.oott = { options.services.oott = rec {
enable = mkEnableOption "Enable oott as a service"; enable = mkOption {
type = types.bool;
package = mkOption { default = false;
type = types.package; description = ''
default = self.packages.${system}.oott; Whether to run the oott service
description = "oott package to use"; '';
}; };
networking.interface = mkOption { networking.interface = mkOption {
type = types.str; type = types.str;
@@ -40,7 +40,7 @@ in {
# builtins.toFile "oott.toml" # builtins.toFile "oott.toml"
# (generators.toTOML {} cfg) # (generators.toTOML {} cfg)
# }"; # }";
ExecStart = "${cfg.package}/bin/oott"; ExecStart = "${pkgs.oott}/bin/oott";
ProtectHome = "read-only"; ProtectHome = "read-only";
Restart = "on-failure"; Restart = "on-failure";
Type = "exec"; Type = "exec";