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;
|
||||
in {
|
||||
# Service options
|
||||
options.services.oott = {
|
||||
enable = mkEnableOption "Enable oott as a service";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = self.packages.${system}.oott;
|
||||
description = "oott package to use";
|
||||
options.services.oott = rec {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to run the oott service
|
||||
'';
|
||||
};
|
||||
networking.interface = mkOption {
|
||||
type = types.str;
|
||||
@@ -40,7 +40,7 @@ in {
|
||||
# builtins.toFile "oott.toml"
|
||||
# (generators.toTOML {} cfg)
|
||||
# }";
|
||||
ExecStart = "${cfg.package}/bin/oott";
|
||||
ExecStart = "${pkgs.oott}/bin/oott";
|
||||
ProtectHome = "read-only";
|
||||
Restart = "on-failure";
|
||||
Type = "exec";
|
||||
|
||||
Reference in New Issue
Block a user