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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user