2023-11-08 22:18:10 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[];
|
|
|
|
|
|
|
|
home.username = "root";
|
|
|
|
home.homeDirectory = "/root";
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
|
|
|
|
# set git names
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Lukas Heiligenbrunner";
|
|
|
|
userEmail = "lukas.heiligenbrunner@gmail.com";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
ll = "ls -l";
|
2023-11-10 14:22:36 +00:00
|
|
|
up = "nix flake update && nixos-rebuild switch --flake .#laptop";
|
|
|
|
gc = "nix-env --delete-generations +5 -p /nix/var/nix/profiles/system && nix store gc";
|
|
|
|
listgen = "nix-env -p /nix/var/nix/profiles/system --list-generations";
|
2023-11-08 22:18:10 +00:00
|
|
|
};
|
|
|
|
history = {
|
|
|
|
path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
size = 10000;
|
|
|
|
};
|
|
|
|
|
|
|
|
initExtra = ''
|
|
|
|
source /home/lukas/.p10k.zsh
|
|
|
|
'';
|
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "powerlevel10k";
|
|
|
|
src = pkgs.zsh-powerlevel10k;
|
|
|
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|