nixos/services.sdrplayApi: remove with lib;
This commit is contained in:
parent
1d3ea1dbe5
commit
1bf69e64ec
@ -1,8 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib;
|
|
||||||
{
|
{
|
||||||
options.services.sdrplayApi = {
|
options.services.sdrplayApi = {
|
||||||
enable = mkOption {
|
enable = lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = ''
|
description = ''
|
||||||
@ -17,7 +16,7 @@ with lib;
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.services.sdrplayApi.enable {
|
config = lib.mkIf config.services.sdrplayApi.enable {
|
||||||
systemd.services.sdrplayApi = {
|
systemd.services.sdrplayApi = {
|
||||||
description = "SDRplay API Service";
|
description = "SDRplay API Service";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user