bash history now in hostname subfolder

This commit is contained in:
Sebastian Moser
2023-11-10 18:08:12 +01:00
parent dca6b03573
commit bbfac53f51
2 changed files with 6 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
{ persistentDir, confDir, ... }:
{ persistentDir, confDir, hostname, ... }:
{
programs.bash = {
enable = true;
enableCompletion = true;
historyFile = "${persistentDir}/bash-history";
historyFile = "${persistentDir}/${hostname}/bash-history";
historyFileSize = 100000;
historyControl = [ "ignoredups" ];
historyIgnore = [

View File

@@ -1,4 +1,4 @@
{ pkgs, secretsDir, inputs, ... }:
{ pkgs, secretsDir, inputs, config, ... }:
{
users.users.me = {
isNormalUser = true;
@@ -9,6 +9,9 @@
#home-manager._module.args = { inherit inputs; };
home-manager.users.me = import ./home.nix;
home-manager.extraSpecialArgs = {
hostname = config.networking.hostName;
};
fonts.fonts = with pkgs; [
hack-font