2024-01-15 20:11:17 -07:00
|
|
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
userName = "nate";
|
|
|
|
fullName = "Nathan Anderson";
|
|
|
|
email = "n8r@tuta.io";
|
|
|
|
in
|
2023-12-14 17:23:01 -07:00
|
|
|
{
|
2023-12-18 20:12:41 -07:00
|
|
|
# nixpkgs.overlays = [
|
|
|
|
# inputs.nur.overlay
|
|
|
|
# ];
|
|
|
|
|
2023-12-15 11:43:28 -07:00
|
|
|
# nixpkgs.config.allowUnfree = true;
|
2023-12-15 09:24:13 -07:00
|
|
|
# inputs.nixpkgs-stable.config.allowUnfree = true;
|
2023-12-18 20:12:41 -07:00
|
|
|
imports = [
|
|
|
|
../apps/firefox/firefox.nix
|
|
|
|
];
|
2023-12-14 17:23:01 -07:00
|
|
|
|
|
|
|
home.username = userName;
|
|
|
|
home.homeDirectory = "/home/${userName}";
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
|
|
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
2023-12-18 20:12:41 -07:00
|
|
|
firefoxApp.enable = true;
|
2024-01-07 22:18:36 -07:00
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
home.packages = with pkgs; [
|
2023-12-18 20:12:41 -07:00
|
|
|
# nur.repos.crazazy.js.eslint
|
|
|
|
# inputs.nixpkgs-stable.legacyPackages.x86_64-linux.corectrl
|
2024-02-15 11:22:47 -07:00
|
|
|
chromium
|
2024-01-12 16:18:45 -07:00
|
|
|
#
|
|
|
|
# Dev Tools
|
|
|
|
#
|
|
|
|
dbeaver
|
|
|
|
cargo
|
2024-03-17 22:13:28 -06:00
|
|
|
helix
|
|
|
|
# kakoune
|
2024-02-15 14:10:57 -07:00
|
|
|
# flutter316
|
2024-01-12 16:18:45 -07:00
|
|
|
docker
|
|
|
|
docker-compose
|
2024-02-15 11:22:47 -07:00
|
|
|
jq
|
2024-01-12 16:18:45 -07:00
|
|
|
python310
|
|
|
|
nodejs_21
|
|
|
|
zig
|
|
|
|
### LSP's
|
2024-03-17 22:13:28 -06:00
|
|
|
nil # Nix LSP
|
2024-01-12 16:18:45 -07:00
|
|
|
openscad-lsp
|
|
|
|
nodePackages.typescript-language-server
|
|
|
|
vscode-langservers-extracted # provides eslint, markdown, json, css, and html lsp
|
|
|
|
rubyPackages.solargraph
|
|
|
|
python310Packages.python-lsp-server
|
|
|
|
zls
|
|
|
|
### Misc
|
|
|
|
# android-udev-rules
|
|
|
|
# android-tools
|
|
|
|
# sdkmanager
|
|
|
|
openscad
|
|
|
|
|
|
|
|
#
|
|
|
|
# Gaming
|
|
|
|
#
|
2024-01-22 14:25:27 -07:00
|
|
|
amdgpu_top
|
2024-02-15 11:22:47 -07:00
|
|
|
mangohud
|
2024-01-12 16:18:45 -07:00
|
|
|
wine-wayland
|
|
|
|
webcord
|
|
|
|
|
|
|
|
#
|
|
|
|
# Better Unix
|
|
|
|
#
|
|
|
|
bat
|
|
|
|
duf
|
|
|
|
fd
|
|
|
|
fzf
|
|
|
|
lsd
|
|
|
|
ripgrep
|
2024-01-15 22:07:47 -07:00
|
|
|
tre-command
|
2024-01-12 16:18:45 -07:00
|
|
|
gtop
|
2024-02-15 11:22:47 -07:00
|
|
|
htop
|
|
|
|
neofetch
|
2024-01-20 11:52:14 -07:00
|
|
|
# Normies
|
|
|
|
unzip
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Photo / Video
|
|
|
|
#
|
|
|
|
davinci-resolve-studio
|
|
|
|
imv
|
|
|
|
mpv
|
|
|
|
gimp
|
2024-01-22 14:25:27 -07:00
|
|
|
ffmpeg
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Communication
|
|
|
|
#
|
|
|
|
mumble
|
|
|
|
slack
|
|
|
|
signal-desktop
|
|
|
|
|
|
|
|
#
|
|
|
|
# Other
|
|
|
|
#
|
2023-12-14 17:23:01 -07:00
|
|
|
keepassxc
|
2023-12-14 21:58:29 -07:00
|
|
|
obs-studio
|
2024-01-12 16:18:45 -07:00
|
|
|
|
2024-03-18 19:45:31 -06:00
|
|
|
#
|
|
|
|
# Style
|
|
|
|
#
|
|
|
|
catppuccin-kvantum
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
|
|
|
libsForQt5.qt5ct
|
2023-12-14 17:23:01 -07:00
|
|
|
# Install fonts
|
2023-12-16 16:36:03 -07:00
|
|
|
(nerdfonts.override { fonts = [ "Hermit" "Overpass" ]; })
|
2023-12-14 17:23:01 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file."${config.xdg.configHome}" = {
|
|
|
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
|
|
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
|
|
|
# # symlink to the Nix store copy.
|
|
|
|
# ".screenrc".source = dotfiles/screenrc;
|
2024-01-15 20:11:17 -07:00
|
|
|
source = ../../dotfiles;
|
2023-12-14 17:23:01 -07:00
|
|
|
recursive = true;
|
|
|
|
|
|
|
|
# # You can also set the file content immediately.
|
|
|
|
# ".gradle/gradle.properties".text = ''
|
|
|
|
# org.gradle.console=verbose
|
|
|
|
# org.gradle.daemon.idletimeout=3600000
|
|
|
|
# '';
|
|
|
|
};
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
2024-03-17 22:13:28 -06:00
|
|
|
EDITOR = "hx";
|
2023-12-18 20:12:41 -07:00
|
|
|
XDG_CURRENT_DESKTOP="sway";
|
2023-12-14 17:23:01 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
# Git setup
|
|
|
|
programs.git = {
|
2023-12-14 21:58:29 -07:00
|
|
|
enable = true;
|
2023-12-16 16:36:03 -07:00
|
|
|
userEmail = email;
|
|
|
|
userName = fullName;
|
2024-03-20 10:15:11 -06:00
|
|
|
extraConfig = {
|
|
|
|
init = { defaultBranch = "main"; };
|
|
|
|
pull = { ff = "only"; };
|
|
|
|
merge = { conflictStyle="zdiff3"; };
|
|
|
|
push = { autoSetupRemote="true"; };
|
|
|
|
};
|
|
|
|
delta.enable = true;
|
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
};
|
|
|
|
|
2024-03-17 16:39:06 -06:00
|
|
|
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
|
|
|
|
};
|
2024-03-18 19:45:31 -06:00
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
# Zsh setup
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" ];
|
|
|
|
theme = "half-life";
|
|
|
|
};
|
2023-12-18 20:12:41 -07:00
|
|
|
initExtra = ''
|
2024-03-17 16:39:06 -06:00
|
|
|
eval "$(direnv hook zsh)"
|
2023-12-18 20:12:41 -07:00
|
|
|
alias ask="nix-shell -p python310Packages.openai --run 'python ~/source/python/chat.py'"
|
|
|
|
|
|
|
|
fzf_projects() {
|
|
|
|
DIR=`
|
|
|
|
fd .git --search-path="$HOME/source/" -H --ignore-file ~/.config/fd-ignore -tdirectory | \
|
|
|
|
xargs dirname | \
|
|
|
|
sed 's|$HOME||g' | \
|
|
|
|
sort | \
|
|
|
|
uniq | \
|
|
|
|
fzf --preview 'ls $HOME/{}/README.md 2>/dev/null && bat $HOME/{}/README.md || printf "No README.md file found in this directory\n%s" {}' --preview-window=top | \
|
|
|
|
xargs printf "$HOME/%s/"
|
|
|
|
`
|
|
|
|
cd $DIR
|
|
|
|
}
|
2024-03-17 22:13:28 -06:00
|
|
|
alias p="fzf_projects ~/source/"
|
2023-12-18 20:12:41 -07:00
|
|
|
|
2024-01-20 13:34:45 -07:00
|
|
|
alias ls="lsd"
|
|
|
|
alias l="lsd --almost-all --long"
|
|
|
|
alias llm="lsd --timesort --long"
|
|
|
|
alias lS="lsd --oneline --classic"
|
|
|
|
alias lt="lsd --tree --depth=2"
|
2024-03-17 22:13:28 -06:00
|
|
|
alias grep="rg"
|
2024-03-19 12:16:02 -06:00
|
|
|
alias rm="rm -i"
|
2023-12-18 20:12:41 -07:00
|
|
|
'';
|
2023-12-14 17:23:01 -07:00
|
|
|
};
|
|
|
|
|
2024-03-18 19:45:31 -06:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "qtct";
|
|
|
|
style.name = "kvantum";
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-03-19 11:13:58 -06:00
|
|
|
cursorTheme = {
|
|
|
|
package = pkgs.catppuccin-cursors.macchiatoLavender;
|
|
|
|
name = "Catppuccin-Macchiato-Lavender-Cursors";
|
|
|
|
};
|
2024-03-18 19:45:31 -06:00
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.catppuccin-papirus-folders;
|
|
|
|
name = "Papirus-Dark";
|
2024-01-15 22:07:47 -07:00
|
|
|
};
|
2024-03-18 19:45:31 -06:00
|
|
|
theme = {
|
|
|
|
name = "Catppuccin-Macchiato-Compact-Lavender-Dark";
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [ "lavender" ];
|
|
|
|
size = "compact";
|
|
|
|
tweaks = [ "rimless" ];
|
|
|
|
variant = "macchiato";
|
|
|
|
};
|
2024-01-15 22:07:47 -07:00
|
|
|
};
|
2024-03-18 19:45:31 -06:00
|
|
|
};
|
2024-03-19 11:40:28 -06:00
|
|
|
# Symlink in gtk and kvantum theme to ~/.config
|
2024-03-18 19:45:31 -06: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-03-19 11:40:28 -06:00
|
|
|
home.file.".icons/default/index.theme".text = ''
|
|
|
|
[icon theme]
|
|
|
|
Inherits=Catppuccin-Macchiato-Lavender-Cursors
|
|
|
|
'';
|
2023-12-14 17:23:01 -07:00
|
|
|
}
|