added toothpick
This commit is contained in:
7
home/core/tui/git/toothpick.nix
Normal file
7
home/core/tui/git/toothpick.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "toothpick";
|
||||
userEmail = "fredrik@libellux.com";
|
||||
};
|
||||
}
|
||||
60
home/core/tui/shell/toothpick.nix
Normal file
60
home/core/tui/shell/toothpick.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
dotDir = ".config/zsh";
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixdev = "nix develop ~/.nix-config -c $SHELL";
|
||||
nixconfig = "cd /home/toothpick/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "nh os switch -v -H toothpc";
|
||||
nixup = "nh os switch -H toothpc";
|
||||
flakeupdate = "nh os switch -u -v -H toothpc";
|
||||
flakeup = "nh os switch -u -H toothpc";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
# "thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
profileExtra = ''
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
'';
|
||||
initExtraFirst = ''
|
||||
autoload -U colors && colors
|
||||
'';
|
||||
initExtra = ''
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{143}(%F{167}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%F{143}) %F{202}%1{✗%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%F{143})"
|
||||
|
||||
ZSH_THEME_RUBY_PROMPT_PREFIX="%F{167}‹"
|
||||
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%f"
|
||||
|
||||
PROMPT='%F{143}%~%f $(git_prompt_info)$(virtualenv_prompt_info)
|
||||
%F{143}$ '
|
||||
|
||||
RPROMPT='$(ruby_prompt_info)'
|
||||
|
||||
VIRTUAL_ENV_DISABLE_PROMPT=0
|
||||
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %F{66}🐍 "
|
||||
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%f"
|
||||
ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
|
||||
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
|
||||
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
|
||||
'';
|
||||
};
|
||||
}
|
||||
36
home/users/toothpick/home.nix
Normal file
36
home/users/toothpick/home.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./imports.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
package = lib.mkDefault pkgs.nix;
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
warn-dirty = false;
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Set your username
|
||||
home = {
|
||||
username = "toothpick";
|
||||
homeDirectory = "/home/toothpick";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "24.05";
|
||||
}
|
||||
63
home/users/toothpick/imports.nix
Normal file
63
home/users/toothpick/imports.nix
Normal file
@@ -0,0 +1,63 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
# core.gui
|
||||
../../core/gui/gtk
|
||||
../../core/gui/waybar
|
||||
../../core/gui/browsers
|
||||
../../core/gui/xdg
|
||||
../../core/gui/discord
|
||||
# core.tui
|
||||
../../core/tui/git/toothpick.nix
|
||||
../../core/tui/shell/toothpick.nix
|
||||
../../core/tui/foot
|
||||
../../core/tui/neovim
|
||||
# core.services
|
||||
../../core/services/mako
|
||||
../../core/services/polkit
|
||||
../../core/services/hypr
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
# misc.gui
|
||||
file-roller
|
||||
gnome-calculator
|
||||
keepassxc
|
||||
nwg-look
|
||||
oculante
|
||||
pavucontrol
|
||||
qbittorrent
|
||||
virt-manager
|
||||
xfce.thunar
|
||||
swaybg
|
||||
|
||||
# misc.tui
|
||||
alacritty
|
||||
btop
|
||||
calcurse
|
||||
fastfetch
|
||||
htop
|
||||
ranger
|
||||
|
||||
# misc.system
|
||||
adwaita-icon-theme
|
||||
grimblast
|
||||
hyprpicker
|
||||
networkmanagerapplet
|
||||
pamixer
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
slurp
|
||||
# thefuck
|
||||
wireguard-tools
|
||||
wl-clipboard
|
||||
wpa_supplicant
|
||||
xfce.thunar-archive-plugin
|
||||
xfce.thunar-volman
|
||||
];
|
||||
sessionVariables = {
|
||||
BROWSER = "firefox";
|
||||
EDITOR = "nvim";
|
||||
TERM = "foot";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user