treewide: remove file-wide with lib; in nixos/modules/programs

This commit is contained in:
Acid Bong
2024-04-17 14:37:58 +03:00
parent 861f29655c
commit 49f6869f71
118 changed files with 1053 additions and 1269 deletions

View File

@@ -1,18 +1,16 @@
{ config, lib, pkgs, ... }:
with lib;
let
enable = config.programs.bash.enableCompletion;
in
{
options = {
programs.bash.enableCompletion = mkEnableOption "Bash completion for all interactive bash shells" // {
programs.bash.enableCompletion = lib.mkEnableOption "Bash completion for all interactive bash shells" // {
default = true;
};
};
config = mkIf enable {
config = lib.mkIf enable {
programs.bash.promptPluginInit = ''
# Check whether we're running a version of Bash that has support for
# programmable completion. If we do, enable all modules installed in