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
'';
# Configuration for readline in bash.
environment.etc."inputrc".source = ./inputrc;
# Configuration for readline in bash. We use "option default"
# priority to allow user override using both .text and .source.
environment.etc."inputrc".source = mkOptionDefault ./inputrc;
users.defaultUserShell = mkDefault pkgs.bashInteractive;