diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2024-04-30 18:57:01 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2024-05-02 23:17:40 +0200 |
commit | 5b2b3b8558e55d618a80526fdfe9af1952321cf1 (patch) | |
tree | dda7abb1edbba1faf78df1056e7e24add4a67fbe /nixos/modules/programs/gpaste.nix | |
parent | f77c3bf760834ae7487acfa5b7e455b3cf08b916 (diff) |
nixos/gnome: Remove global with expressions
The can potentially mask evaluation errors due to laziness of variable access within.
Diffstat (limited to 'nixos/modules/programs/gpaste.nix')
-rw-r--r-- | nixos/modules/programs/gpaste.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/programs/gpaste.nix b/nixos/modules/programs/gpaste.nix index 38dc0488c68a7..32b81434bdd94 100644 --- a/nixos/modules/programs/gpaste.nix +++ b/nixos/modules/programs/gpaste.nix @@ -1,15 +1,13 @@ # GPaste. { config, lib, pkgs, ... }: -with lib; - { ###### interface options = { programs.gpaste = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = '' Whether to enable GPaste, a clipboard manager. @@ -19,7 +17,7 @@ with lib; }; ###### implementation - config = mkIf config.programs.gpaste.enable { + config = lib.mkIf config.programs.gpaste.enable { environment.systemPackages = [ pkgs.gnome.gpaste ]; services.dbus.packages = [ pkgs.gnome.gpaste ]; systemd.packages = [ pkgs.gnome.gpaste ]; |