refactor(copyparty): make package a deployment policy
This commit is contained in:
@@ -11,8 +11,6 @@ in
|
|||||||
options.modules.services.copyparty = {
|
options.modules.services.copyparty = {
|
||||||
enable = lib.mkEnableOption "Copyparty";
|
enable = lib.mkEnableOption "Copyparty";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "copyparty-min" { };
|
|
||||||
|
|
||||||
port = lib.mkOption {
|
port = lib.mkOption {
|
||||||
type = lib.types.port;
|
type = lib.types.port;
|
||||||
default = 3923;
|
default = 3923;
|
||||||
@@ -119,10 +117,10 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
inherit (cfg)
|
inherit (cfg)
|
||||||
group
|
group
|
||||||
package
|
|
||||||
stateDir
|
stateDir
|
||||||
user
|
user
|
||||||
;
|
;
|
||||||
|
package = pkgs.copyparty-min;
|
||||||
settings = {
|
settings = {
|
||||||
i = "0.0.0.0";
|
i = "0.0.0.0";
|
||||||
p = cfg.port;
|
p = cfg.port;
|
||||||
|
|||||||
Reference in New Issue
Block a user