nixos/services.freenet: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-28 21:19:07 +02:00 committed by Jörg Thalheim
parent 688b08939c
commit a49fa6ee3b

View File

@ -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";