1
0
Fork 1
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:
Robert Helgesson 2017-11-20 12:27:50 +01:00
parent fd565ced04
commit 101d56cb0c
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -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;