mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Update oott-service.nix
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user