nixos/services.freenet: remove with lib;
This commit is contained in:
parent
688b08939c
commit
a49fa6ee3b
@ -1,9 +1,5 @@
|
||||
# NixOS module for Freenet daemon
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.services.freenet;
|
||||
@ -19,14 +15,14 @@ in
|
||||
|
||||
services.freenet = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable the Freenet daemon";
|
||||
};
|
||||
|
||||
nice = mkOption {
|
||||
type = types.int;
|
||||
nice = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 10;
|
||||
description = "Set the nice level for the Freenet daemon";
|
||||
};
|
||||
@ -37,7 +33,7 @@ in
|
||||
|
||||
### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
systemd.services.freenet = {
|
||||
description = "Freenet daemon";
|
||||
|
Loading…
Reference in New Issue
Block a user