This commit is contained in:
2026-08-27 20:44:59 +02:00
parent 2613b5eb1e
commit 70541b2698
5 changed files with 55 additions and 14 deletions
+8
View File
@@ -0,0 +1,8 @@
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/lukas/nixos"; # sets NH_OS_FLAKE variable for you
};
}
+42 -11
View File
@@ -6,33 +6,64 @@
dotDir = config.home.homeDirectory; dotDir = config.home.homeDirectory;
enableCompletion = true; enableCompletion = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
autosuggestion.enable = true;
autosuggestion = {
enable = true;
strategy = [
"history"
"completion"
];
};
historySubstringSearch.enable = true;
history = {
size = 100000;
save = 100000;
ignoreDups = true;
ignoreAllDups = true;
saveNoDups = true;
findNoDups = true;
# Make new commands visible in other open terminals.
share = true;
# Store timestamps and durations.
extended = true;
};
initContent = "source /etc/nixos/home/lukas/common/p10k.zsh"; initContent = "source /etc/nixos/home/lukas/common/p10k.zsh";
sessionVariables = { sessionVariables = {
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true"; POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=8";
ZSH_AUTOSUGGEST_STRATEGY = "history completion";
}; };
zplug = { zplug = {
enable = true; enable = true;
plugins = [ plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; } {
name = "romkatv/powerlevel10k";
tags = [
"as:theme"
"depth:1"
];
}
]; ];
}; };
shellAliases = { shellAliases = {
".." = "cd .."; ".." = "cd ..";
ls = "eza --icons"; # plain directory listing ls = "eza --icons"; # plain directory listing
ll = "eza --icons -alh --git"; # long list, all, human, git status ll = "eza --icons -alh --git"; # long list, all, human, git status
la = "eza --icons -a"; # show all dot-files, short la = "eza --icons -a"; # show all dot-files, short
lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep
cat ="bat --style=plain --pager=cat"; # pretty cat cat = "bat --style=plain --pager=cat"; # pretty cat
less ="bat --style=plain --pager=less"; # pretty less less = "bat --style=plain --pager=less"; # pretty less
}; };
}; };
} }
+2 -1
View File
@@ -9,11 +9,12 @@
../common/alacritty.nix ../common/alacritty.nix
../common/tmux.nix ../common/tmux.nix
../common/xgd.nix ../common/xgd.nix
../common/nh.nix
../common/libreoffice.nix ../common/libreoffice.nix
]; ];
home.username = "lukas"; home.username = "lukas";
home.homeDirectory = "/home/lukas"; home.homeDirectory = "/home/lukas";
home.stateVersion = "25.05"; home.stateVersion = "26.05";
} }
+2 -1
View File
@@ -8,12 +8,13 @@
../common/shell.nix ../common/shell.nix
../common/alacritty.nix ../common/alacritty.nix
../common/tmux.nix ../common/tmux.nix
../common/nh.nix
../common/xgd.nix ../common/xgd.nix
../common/libreoffice.nix ../common/libreoffice.nix
]; ];
home.username = "lukas"; home.username = "lukas";
home.homeDirectory = "/home/lukas"; home.homeDirectory = "/home/lukas";
home.stateVersion = "25.05"; home.stateVersion = "26.05";
} }
+1 -1
View File
@@ -44,6 +44,6 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Version festlegen # Version festlegen
system.stateVersion = "25.05"; system.stateVersion = "26.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
} }