mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
nixos/rpcbind: drop with lib
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
###### interface
|
||||
@@ -15,8 +13,8 @@ with lib;
|
||||
|
||||
services.rpcbind = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable `rpcbind`, an ONC RPC directory service
|
||||
@@ -32,8 +30,8 @@ with lib;
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf config.services.rpcbind.enable {
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.services.rpcbind.enable {
|
||||
environment.systemPackages = [ pkgs.rpcbind ];
|
||||
|
||||
systemd.packages = [ pkgs.rpcbind ];
|
||||
|
||||
Reference in New Issue
Block a user