mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
nixos/services.vnstat: remove with lib;
This commit is contained in:
parent
cc88c367bb
commit
e8e5c6c79b
@ -1,15 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.vnstat;
|
||||
in {
|
||||
options.services.vnstat = {
|
||||
enable = mkEnableOption "update of network usage statistics via vnstatd";
|
||||
enable = lib.mkEnableOption "update of network usage statistics via vnstatd";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.vnstat ];
|
||||
|
||||
@ -56,5 +53,5 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
meta.maintainers = [ maintainers.evils ];
|
||||
meta.maintainers = [ lib.maintainers.evils ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user