mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
nixos/bash: mark inputrc
etc file as default
The bash module currently sets the `/etc/inputrc` unconditionally, which prevents easy user override. This commit lowers the priority of the setting to "option default" level, which allows a user to override the value using either environment.etc."inputrc".text = … or environment.etc."inputrc".source = …
This commit is contained in:
parent
fd565ced04
commit
101d56cb0c
|
@ -197,8 +197,9 @@ in
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Configuration for readline in bash.
|
# Configuration for readline in bash. We use "option default"
|
||||||
environment.etc."inputrc".source = ./inputrc;
|
# priority to allow user override using both .text and .source.
|
||||||
|
environment.etc."inputrc".source = mkOptionDefault ./inputrc;
|
||||||
|
|
||||||
users.defaultUserShell = mkDefault pkgs.bashInteractive;
|
users.defaultUserShell = mkDefault pkgs.bashInteractive;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue