diff options
author | Robert Helgesson <robert@rycee.net> | 2017-11-20 12:27:50 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-11-20 12:32:01 +0100 |
commit | 101d56cb0cae4feda712a72e32d1a287511ba99a (patch) | |
tree | c7368906ccfc68a103e4ef7b65ef66e229bd9f66 /nixos/modules/programs/bash | |
parent | fd565ced04c14eee3446dcbcf93682d9bf8785ca (diff) |
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 = …
Diffstat (limited to 'nixos/modules/programs/bash')
-rw-r--r-- | nixos/modules/programs/bash/bash.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index e23849d350b4..ef1acdfe66e6 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -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; |