NIX_System_Configurations/common/home-root.nix

43 lines
1017 B
Nix
Raw Permalink Normal View History

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";
up = "nix flake update && nixos-rebuild switch --flake .#laptop";
2023-12-21 20:48:41 +00:00
inst = "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";
}
];
};
}