mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore[server]: improve backup management
This commit is contained in:
parent
5b5ef2b9b0
commit
8f833485da
15 changed files with 1394 additions and 631 deletions
|
|
@ -1,12 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.swarselmodules.bash = lib.mkEnableOption "bash settings";
|
||||
config = lib.mkIf config.swarselmodules.bash {
|
||||
|
||||
programs.bash = {
|
||||
bashrcExtra = ''
|
||||
export PATH="${pkgs.nix}/bin:$PATH"
|
||||
enable = true;
|
||||
# needed for remote builders
|
||||
bashrcExtra = lib.mkIf (!config.swarselsystems.isNixos) ''
|
||||
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
||||
'';
|
||||
historyFile = "${config.home.homeDirectory}/.histfile";
|
||||
historySize = 100000;
|
||||
historyFileSize = 100000;
|
||||
historyControl = [
|
||||
"ignoreboth"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue