diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2021-01-17 21:14:59 +0100 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2021-01-17 21:40:51 +0100 |
commit | 66dc9dbb59f03975a9d2f4940f2f2bf9867e09d6 (patch) | |
tree | bad34751b5c1fde00389220d77355d9cedee27ef /nixos/modules/config/gnu.nix | |
parent | 50cbe8b51767bb8d3ce61c8c7f9fcffec657c92f (diff) |
nixos/modules: stdenv.lib -> lib
Diffstat (limited to 'nixos/modules/config/gnu.nix')
-rw-r--r-- | nixos/modules/config/gnu.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/config/gnu.nix b/nixos/modules/config/gnu.nix index 93d130970190..255d9741ba71 100644 --- a/nixos/modules/config/gnu.nix +++ b/nixos/modules/config/gnu.nix @@ -1,11 +1,9 @@ { config, lib, pkgs, ... }: -with lib; - { options = { - gnu = mkOption { - type = types.bool; + gnu = lib.mkOption { + type = lib.types.bool; default = false; description = '' When enabled, GNU software is chosen by default whenever a there is @@ -15,7 +13,7 @@ with lib; }; }; - config = mkIf config.gnu { + config = lib.mkIf config.gnu { environment.systemPackages = with pkgs; # TODO: Adjust `requiredPackages' from `system-path.nix'. @@ -26,7 +24,7 @@ with lib; nano zile texinfo # for the stand-alone Info reader ] - ++ stdenv.lib.optional (!stdenv.isAarch32) grub2; + ++ lib.optional (!stdenv.isAarch32) grub2; # GNU GRUB, where available. |