mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
Initial commit unclean
This commit is contained in:
86
users/root/home.nix
Normal file
86
users/root/home.nix
Normal file
@@ -0,0 +1,86 @@
|
||||
# Only config stuff you cannot config with dotfiles
|
||||
# Or stuff that does not interfere with the dotfiles
|
||||
|
||||
# Changed my mind
|
||||
# Just do whats fun
|
||||
|
||||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Load all the to be installed packages
|
||||
# ./packages.nix
|
||||
# inputs.xremap-flake.homeManagerModules.default
|
||||
# inputs.stylix.homeManagerModules.stylix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "root";
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
HTTP_HOME = "duckduckgo.com";
|
||||
MANPAGER="nvim +Man!";
|
||||
|
||||
};
|
||||
shellAliases = {
|
||||
testting = "echo 'test'";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
acpi
|
||||
zsh
|
||||
zoxide
|
||||
btop
|
||||
yazi
|
||||
unzip
|
||||
feh
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initContent = ''
|
||||
# Load Starship prompt
|
||||
eval "$(starship init zsh)"
|
||||
'';
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
bashrcExtra = ''
|
||||
# Interactive shell check
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Load Starship prompt
|
||||
if command -v starship >/dev/null 2>&1; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
|
||||
# Add any other bash aliases or functions here
|
||||
alias ll='ls -l'
|
||||
alias la='ls -A'
|
||||
'';
|
||||
profileExtra = ''
|
||||
# Source the bashrc
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
# starship - an customizable prompt for any shell
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
Reference in New Issue
Block a user