Compare commits
1 Commits
4ff9f663eb
...
bdf983f954
Author | SHA1 | Date |
---|---|---|
Oystein Kristoffer Tveit | bdf983f954 |
|
@ -14,8 +14,6 @@ in
|
||||||
|
|
||||||
enablePipewire = lib.mkEnableOption "pipewire" // { default = true; };
|
enablePipewire = lib.mkEnableOption "pipewire" // { default = true; };
|
||||||
|
|
||||||
enableDebug = lib.mkEnableOption "debug logs";
|
|
||||||
|
|
||||||
# TODO: create some better descriptions
|
# TODO: create some better descriptions
|
||||||
settings = {
|
settings = {
|
||||||
host = lib.mkOption {
|
host = lib.mkOption {
|
||||||
|
@ -97,9 +95,6 @@ in
|
||||||
description = "greg-ng, an mpv based media player";
|
description = "greg-ng, an mpv based media player";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
environment = {
|
|
||||||
RUST_LOG = lib.mkIf cfg.enableDebug "greg_ng=trace,mpvipc=trace";
|
|
||||||
};
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${lib.getExe cfg.package} ${lib.cli.toGNUCommandLineShell { } cfg.settings}";
|
ExecStart = "${lib.getExe cfg.package} ${lib.cli.toGNUCommandLineShell { } cfg.settings}";
|
||||||
|
|
Loading…
Reference in New Issue