2024-12-17 14:40:05 -07:00
|
|
|
{ inputs, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
userName = "nate";
|
|
|
|
fullName = "Nate Anderson";
|
|
|
|
email = "nate.anderson@vasion.com";
|
|
|
|
unstable = import inputs.nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
|
|
|
|
# oldstable = import inputs.nixpkgs-23 { system = "x86_64-linux"; config.allowUnfree = true; };
|
|
|
|
# davinciDesktop = pkgs.makeDesktopItem {
|
|
|
|
# name = "davinci-resolve-studio";
|
|
|
|
# desktopName = "Davinci Resolve Studio";
|
|
|
|
# exec = "${oldstable.davinci-resolve-studio}";
|
|
|
|
# };
|
|
|
|
# overlay-unstable = final: prev: {
|
|
|
|
# unstable = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
|
|
|
|
# };
|
|
|
|
# overlay-oldstable = final: prev: {
|
|
|
|
# pkgs23 = inputs.nixpkgs-23.legacyPackages.x86_64-linux;
|
|
|
|
# };
|
|
|
|
# overlay-unstable = final: prev: {
|
|
|
|
# # unstable = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
|
|
|
|
# unstable = import inputs.nixpkgs-unstable {
|
|
|
|
# system = "x86_64-linux";
|
|
|
|
# config = {
|
|
|
|
# allowUnfreePredicate = (pkg: true);
|
|
|
|
# allowUnfree = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# nixpkgs.overlays = [
|
|
|
|
# overlay-unstable
|
|
|
|
# ];
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
../apps/firefox/firefox.nix
|
|
|
|
../hypr/hypr_home.nix
|
|
|
|
];
|
2024-12-19 13:47:39 -07:00
|
|
|
|
|
|
|
catppuccin = {
|
|
|
|
enable = true;
|
|
|
|
flavor = "macchiato";
|
|
|
|
accent = "lavender";
|
|
|
|
pointerCursor.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-12-17 14:40:05 -07:00
|
|
|
|
|
|
|
home.username = userName;
|
|
|
|
home.homeDirectory = "/home/${userName}";
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
|
|
|
firefoxApp.enable = true;
|
|
|
|
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
|
|
|
|
hyprhome = {
|
|
|
|
enable = true;
|
|
|
|
homePackages = with pkgs; [
|
|
|
|
chromium
|
|
|
|
#
|
|
|
|
# Dev Tools
|
|
|
|
#
|
|
|
|
helix
|
|
|
|
unstable.distrobox
|
|
|
|
unstable.docker_25
|
|
|
|
docker-compose
|
|
|
|
jq
|
|
|
|
gnumake
|
|
|
|
insomnia
|
|
|
|
mariadb
|
|
|
|
|
|
|
|
# Go stuff
|
|
|
|
go
|
|
|
|
delve
|
|
|
|
gotools
|
|
|
|
go-tools
|
|
|
|
|
|
|
|
### LSP's
|
|
|
|
gopls
|
|
|
|
nil # Nix LSP
|
|
|
|
nodePackages_latest.bash-language-server
|
|
|
|
openscad-lsp
|
|
|
|
vscode-langservers-extracted # provides eslint, markdown, json, css, and html lsp
|
|
|
|
python311Packages.python-lsp-server
|
|
|
|
gopls
|
|
|
|
delve
|
|
|
|
|
|
|
|
### Misc
|
2024-12-19 13:47:39 -07:00
|
|
|
# dbeaver-bin
|
2024-12-17 14:40:05 -07:00
|
|
|
usbutils
|
|
|
|
cli-visualizer
|
|
|
|
openscad
|
2024-12-19 13:47:39 -07:00
|
|
|
libxml2
|
2024-12-17 14:40:05 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Better Unix
|
|
|
|
#
|
|
|
|
bat
|
|
|
|
duf
|
|
|
|
du-dust
|
|
|
|
fd
|
|
|
|
fzf
|
|
|
|
lsd
|
|
|
|
ripgrep
|
|
|
|
tre-command
|
|
|
|
gtop
|
|
|
|
htop
|
|
|
|
neofetch
|
|
|
|
s-tui
|
|
|
|
# Normies
|
|
|
|
unzip
|
|
|
|
llpp
|
|
|
|
nmap
|
|
|
|
|
|
|
|
#
|
|
|
|
# Photo / Video
|
|
|
|
#
|
|
|
|
# oldstable.davinci-resolve-studio
|
|
|
|
# davinciDesktop
|
|
|
|
imv
|
|
|
|
mpv
|
|
|
|
gimp
|
|
|
|
ffmpeg
|
|
|
|
tenacity
|
|
|
|
yt-dlp
|
|
|
|
libimobiledevice
|
|
|
|
ifuse
|
|
|
|
|
|
|
|
#
|
|
|
|
# Communication
|
|
|
|
#
|
2024-12-19 13:47:39 -07:00
|
|
|
# unstable.slack
|
2024-12-17 14:40:05 -07:00
|
|
|
mumble
|
2024-12-19 13:47:39 -07:00
|
|
|
# unstable.signal-desktop
|
|
|
|
# zoom-us
|
2024-12-17 14:40:05 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Other
|
|
|
|
#
|
|
|
|
keepassxc
|
|
|
|
obs-studio
|
|
|
|
prusa-slicer
|
|
|
|
gnome-disk-utility
|
|
|
|
kdePackages.filelight
|
|
|
|
|
|
|
|
#
|
|
|
|
# Style
|
|
|
|
#
|
|
|
|
catppuccin-kvantum
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
|
|
|
libsForQt5.qt5ct
|
|
|
|
# Install fonts
|
|
|
|
lato
|
|
|
|
(nerdfonts.override { fonts = [ "Hermit" "Overpass" ]; })
|
|
|
|
recursive
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file."${config.xdg.configHome}" = {
|
|
|
|
source = ../../dotfiles;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# For applying custom styles
|
|
|
|
# home.file.".mozilla/firefox/default" = {
|
|
|
|
# source = ../../misc/firefox_styles;
|
|
|
|
# recursive = true;
|
|
|
|
# };
|
|
|
|
# location where stylus data is kept
|
|
|
|
# /home/nate/.mozilla/firefox/default/storage/default/moz-extension+++77a1d59f-183c-4439-b249-fdae98b7bd7b/idb
|
|
|
|
services.gnome-keyring.enable = true;
|
|
|
|
services.gnome-keyring.components = [ "ssh" "secrets" ];
|
|
|
|
services.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
2024-12-19 13:47:39 -07:00
|
|
|
# BAT_THEME="Catppuccin Macchiato";
|
2024-12-17 14:40:05 -07:00
|
|
|
EDITOR = "hx";
|
|
|
|
NIXOS_OZONE_WL = "1";
|
2024-12-19 13:47:39 -07:00
|
|
|
XCURSOR_THEME = "catppuccin-macchiato-lavender-cursors";
|
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
HYPRCURSOR_THEME = "catppuccin-macchiato-lavender-cursors";
|
|
|
|
# HYPRCURSOR_SIZE = "24";
|
2024-12-17 14:40:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
# Git setup
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userEmail = email;
|
|
|
|
userName = fullName;
|
|
|
|
extraConfig = {
|
|
|
|
include = { path = "${config.xdg.configHome}/macchiato.gitconfig"; };
|
|
|
|
init = { defaultBranch = "main"; };
|
|
|
|
pull = { ff = "only"; };
|
|
|
|
merge = { conflictStyle="zdiff3"; };
|
|
|
|
push = { autoSetupRemote="true"; };
|
|
|
|
"url \"git@github.com:\"" = {
|
|
|
|
insteadOf = "https://github.com/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
delta.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true; # see note on other shells below
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
bash.enable = true; # see note on other shells below
|
|
|
|
};
|
|
|
|
|
|
|
|
# Zsh setup
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" "ssh-agent" ];
|
|
|
|
theme = "half-life";
|
|
|
|
extraConfig =
|
|
|
|
''
|
|
|
|
zstyle :omz:plugins:ssh-agent lazy yes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
eval "$(direnv hook zsh)"
|
|
|
|
# eval "$(ssh-agent)" >/dev/null
|
|
|
|
# export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
|
|
|
|
|
|
|
|
# Work envs
|
|
|
|
source ~/.vasion_env
|
|
|
|
# bonus functions
|
|
|
|
source ~/.config/zsh_functions
|
|
|
|
|
|
|
|
export GOBIN=~/go/bin
|
|
|
|
export PATH=$PATH:$GOBIN
|
|
|
|
'';
|
|
|
|
shellAliases = {
|
|
|
|
ls="lsd";
|
|
|
|
l="lsd --almost-all --long";
|
|
|
|
llm="lsd --timesort --long";
|
|
|
|
lS="lsd --oneline --classic";
|
|
|
|
lt="lsd --tree --depth=2";
|
|
|
|
cat="bat --paging=never";
|
|
|
|
rm="rm -i";
|
|
|
|
};
|
2024-12-19 13:47:39 -07:00
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
catppuccin.enable = true;
|
|
|
|
};
|
2024-12-17 14:40:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-12-19 13:47:39 -07:00
|
|
|
platformTheme.name = "kvantum";
|
2024-12-17 14:40:05 -07:00
|
|
|
style.name = "kvantum";
|
2024-12-19 13:47:39 -07:00
|
|
|
style.catppuccin.enable = true;
|
2024-12-17 14:40:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-12-19 13:47:39 -07:00
|
|
|
catppuccin = {
|
|
|
|
enable = true;
|
|
|
|
size = "compact";
|
|
|
|
tweaks = [ "rimless" ];
|
|
|
|
icon = {
|
|
|
|
enable = true;
|
2024-12-17 14:40:05 -07:00
|
|
|
};
|
|
|
|
};
|
2024-12-19 13:47:39 -07:00
|
|
|
# cursorTheme = {
|
|
|
|
# package = pkgs.catppuccin-cursors.macchiatoLavender;
|
|
|
|
# name = "Catppuccin-Macchiato-Lavender-Cursors";
|
|
|
|
# };
|
|
|
|
# iconTheme = {
|
|
|
|
# package = pkgs.catppuccin-papirus-folders;
|
|
|
|
# name = "Papirus-Dark";
|
|
|
|
# };
|
|
|
|
# theme = {
|
|
|
|
# name = "catppuccin-macchiato-lavender-compact+rimless";
|
|
|
|
# package = pkgs.catppuccin-gtk.override {
|
|
|
|
# accents = [ "lavender" ];
|
|
|
|
# size = "compact";
|
|
|
|
# tweaks = [ "rimless" ];
|
|
|
|
# variant = "macchiato";
|
|
|
|
# };
|
|
|
|
# };
|
2024-12-17 14:40:05 -07:00
|
|
|
};
|
|
|
|
# Symlink in gtk and kvantum theme to ~/.config
|
2024-12-19 13:47:39 -07:00
|
|
|
# xdg.configFile = {
|
|
|
|
# "gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
|
|
|
|
# "gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
|
|
|
|
# "gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
|
|
|
|
# "Kvantum/kvantum.kvconfig".text = ''
|
|
|
|
# [General]
|
|
|
|
# theme=Catppuccin-Frappe-Blue
|
|
|
|
# '';
|
|
|
|
# "Kvantum/Catppuccin-Frappe-Blue".source = "${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Frappe-Blue";
|
|
|
|
# };
|
2024-12-17 14:40:05 -07:00
|
|
|
|
2024-12-19 13:47:39 -07:00
|
|
|
# home.file.".icons/default/index.theme".text = ''
|
|
|
|
# [icon theme]
|
|
|
|
# Inherits=Catppuccin-Macchiato-Lavender-Cursors
|
|
|
|
# '';
|
2024-12-17 14:40:05 -07:00
|
|
|
|
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
|
|
}
|