nixos/services.alice-lg: remove with lib;
This commit is contained in:
parent
b1bbe81c8d
commit
46dc82d477
@ -1,7 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.alice-lg;
|
cfg = config.services.alice-lg;
|
||||||
settingsFormat = pkgs.formats.ini { };
|
settingsFormat = pkgs.formats.ini { };
|
||||||
@ -9,17 +6,17 @@ in
|
|||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
services.alice-lg = {
|
services.alice-lg = {
|
||||||
enable = mkEnableOption "Alice Looking Glass";
|
enable = lib.mkEnableOption "Alice Looking Glass";
|
||||||
|
|
||||||
package = mkPackageOption pkgs "alice-lg" { };
|
package = lib.mkPackageOption pkgs "alice-lg" { };
|
||||||
|
|
||||||
settings = mkOption {
|
settings = lib.mkOption {
|
||||||
type = settingsFormat.type;
|
type = settingsFormat.type;
|
||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
alice-lg configuration, for configuration options see the example on [github](https://github.com/alice-lg/alice-lg/blob/main/etc/alice-lg/alice.example.conf)
|
alice-lg configuration, for configuration options see the example on [github](https://github.com/alice-lg/alice-lg/blob/main/etc/alice-lg/alice.example.conf)
|
||||||
'';
|
'';
|
||||||
example = literalExpression ''
|
example = lib.literalExpression ''
|
||||||
{
|
{
|
||||||
server = {
|
server = {
|
||||||
# configures the built-in webserver and provides global application settings
|
# configures the built-in webserver and provides global application settings
|
||||||
|
Loading…
Reference in New Issue
Block a user