2024-07-22 13:30:55 -06:00
|
|
|
{ inputs, config, pkgs, ... }:
|
2024-01-15 20:11:17 -07:00
|
|
|
let
|
|
|
|
userName = "nate";
|
|
|
|
fullName = "Nathan Anderson";
|
|
|
|
email = "n8r@tuta.io";
|
2024-07-22 13:30:55 -06:00
|
|
|
unstable = import inputs.nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
|
2024-11-08 13:30:45 -07:00
|
|
|
# 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}";
|
|
|
|
# };
|
2024-07-22 13:30:55 -06:00
|
|
|
# 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;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
2024-01-15 20:11:17 -07:00
|
|
|
in
|
2023-12-14 17:23:01 -07:00
|
|
|
{
|
2023-12-18 20:12:41 -07:00
|
|
|
# nixpkgs.overlays = [
|
2024-07-22 13:30:55 -06:00
|
|
|
# overlay-unstable
|
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;
|
2024-04-25 09:57:16 -06:00
|
|
|
|
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
home.packages = with pkgs; [
|
2023-12-18 20:12:41 -07:00
|
|
|
# nur.repos.crazazy.js.eslint
|
2024-02-15 11:22:47 -07:00
|
|
|
chromium
|
2024-01-12 16:18:45 -07:00
|
|
|
#
|
|
|
|
# Dev Tools
|
|
|
|
#
|
2024-07-22 13:30:55 -06:00
|
|
|
dbeaver-bin
|
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-07-22 13:30:55 -06:00
|
|
|
fossil
|
|
|
|
fnc
|
2024-02-15 11:22:47 -07:00
|
|
|
jq
|
2024-01-12 16:18:45 -07:00
|
|
|
python310
|
|
|
|
### LSP's
|
2024-03-17 22:13:28 -06:00
|
|
|
nil # Nix LSP
|
2024-07-22 13:30:55 -06:00
|
|
|
nodePackages_latest.bash-language-server
|
2024-01-12 16:18:45 -07:00
|
|
|
openscad-lsp
|
|
|
|
vscode-langservers-extracted # provides eslint, markdown, json, css, and html lsp
|
2024-07-22 13:30:55 -06:00
|
|
|
python311Packages.python-lsp-server
|
|
|
|
# zls
|
2024-01-12 16:18:45 -07:00
|
|
|
### Misc
|
|
|
|
# android-udev-rules
|
|
|
|
# android-tools
|
|
|
|
# sdkmanager
|
2024-04-16 09:39:38 -06:00
|
|
|
usbutils
|
2024-07-22 13:30:55 -06:00
|
|
|
cli-visualizer
|
2024-01-12 16:18:45 -07:00
|
|
|
openscad
|
|
|
|
|
|
|
|
#
|
|
|
|
# Gaming
|
|
|
|
#
|
2024-01-22 14:25:27 -07:00
|
|
|
amdgpu_top
|
2024-02-15 11:22:47 -07:00
|
|
|
mangohud
|
2024-07-22 13:30:55 -06:00
|
|
|
r2modman
|
2024-01-12 16:18:45 -07:00
|
|
|
wine-wayland
|
2024-07-22 13:30:55 -06:00
|
|
|
webcord
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Better Unix
|
|
|
|
#
|
|
|
|
bat
|
|
|
|
duf
|
2024-07-22 13:30:55 -06:00
|
|
|
du-dust
|
2024-01-12 16:18:45 -07:00
|
|
|
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-09-02 14:45:05 -06:00
|
|
|
llpp
|
|
|
|
nmap
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Photo / Video
|
|
|
|
#
|
2024-12-17 16:17:51 -07:00
|
|
|
unstable.davinci-resolve-studio
|
2024-11-08 13:30:45 -07:00
|
|
|
# davinciDesktop
|
2024-01-12 16:18:45 -07:00
|
|
|
imv
|
|
|
|
mpv
|
|
|
|
gimp
|
2024-01-22 14:25:27 -07:00
|
|
|
ffmpeg
|
2024-04-16 09:39:38 -06:00
|
|
|
tenacity
|
|
|
|
yt-dlp
|
2024-07-22 13:30:55 -06:00
|
|
|
libimobiledevice
|
|
|
|
ifuse
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Communication
|
|
|
|
#
|
|
|
|
mumble
|
|
|
|
slack
|
2024-07-22 13:30:55 -06:00
|
|
|
unstable.signal-desktop
|
2024-01-12 16:18:45 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Other
|
|
|
|
#
|
2023-12-14 17:23:01 -07:00
|
|
|
keepassxc
|
2023-12-14 21:58:29 -07:00
|
|
|
obs-studio
|
2024-11-08 08:52:19 -07:00
|
|
|
prusa-slicer
|
2024-05-15 10:17:27 -06:00
|
|
|
yubioath-flutter
|
2024-11-08 08:52:19 -07:00
|
|
|
gnome.gnome-disk-utility
|
|
|
|
kdePackages.filelight
|
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
|
2024-09-02 14:45:05 -06:00
|
|
|
lato
|
2023-12-16 16:36:03 -07:00
|
|
|
(nerdfonts.override { fonts = [ "Hermit" "Overpass" ]; })
|
2024-03-20 15:00:06 -06:00
|
|
|
recursive
|
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}" = {
|
2024-01-15 20:11:17 -07:00
|
|
|
source = ../../dotfiles;
|
2023-12-14 17:23:01 -07:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
|
2024-04-08 12:59:59 -06:00
|
|
|
# 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
|
2024-11-08 08:52:19 -07:00
|
|
|
services.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
};
|
2024-04-08 12:59:59 -06:00
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
home.sessionVariables = {
|
2024-03-20 15:00:06 -06:00
|
|
|
# MANPAGER="sh -c 'col -bx | bat -l man -p'";
|
|
|
|
BAT_THEME="Catppuccin Macchiato";
|
2024-03-17 22:13:28 -06:00
|
|
|
EDITOR = "hx";
|
2023-12-18 20:12:41 -07:00
|
|
|
XDG_CURRENT_DESKTOP="sway";
|
2024-11-08 13:30:45 -07:00
|
|
|
NIXOS_OZONE_WL = "1";
|
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 = {
|
2024-03-20 15:00:06 -06:00
|
|
|
include = { path = "${config.xdg.configHome}/macchiato.gitconfig"; };
|
2024-03-20 10:15:11 -06:00
|
|
|
init = { defaultBranch = "main"; };
|
|
|
|
pull = { ff = "only"; };
|
|
|
|
merge = { conflictStyle="zdiff3"; };
|
|
|
|
push = { autoSetupRemote="true"; };
|
2024-03-20 15:00:06 -06:00
|
|
|
delta = { features = "Catppuccin Macchiato"; };
|
2024-03-20 10:15:11 -06:00
|
|
|
};
|
|
|
|
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;
|
2024-12-17 15:52:07 -07:00
|
|
|
plugins = [ "git" "ssh-agent" ];
|
2023-12-14 17:23:01 -07:00
|
|
|
theme = "half-life";
|
2024-12-17 15:52:07 -07:00
|
|
|
extraConfig =
|
|
|
|
''
|
|
|
|
zstyle :omz:plugins:ssh-agent lazy yes
|
|
|
|
'';
|
2023-12-14 17:23:01 -07:00
|
|
|
};
|
2023-12-18 20:12:41 -07:00
|
|
|
initExtra = ''
|
2024-03-17 16:39:06 -06:00
|
|
|
eval "$(direnv hook zsh)"
|
2024-03-20 15:00:06 -06:00
|
|
|
|
2024-04-25 09:57:16 -06:00
|
|
|
yt-audio() {
|
|
|
|
nix-shell -p yt-dlp --run "yt-dlp -x $1 --audio-format mp3"
|
|
|
|
}
|
2023-12-18 20:12:41 -07:00
|
|
|
'';
|
2024-12-17 15:52:07 -07:00
|
|
|
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";
|
|
|
|
adaptiveoff="swaymsg 'output * adaptive_sync off'";
|
|
|
|
adaptiveon="swaymsg 'output * adaptive_sync on'";
|
|
|
|
};
|
2023-12-14 17:23:01 -07:00
|
|
|
};
|
|
|
|
|
2024-03-18 19:45:31 -06:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-07-22 13:30:55 -06:00
|
|
|
platformTheme.name = "qtct";
|
2024-03-18 19:45:31 -06:00
|
|
|
style.name = "kvantum";
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-03-19 11:13:58 -06:00
|
|
|
cursorTheme = {
|
|
|
|
package = pkgs.catppuccin-cursors.macchiatoLavender;
|
2024-12-17 14:40:05 -07:00
|
|
|
name = "catppuccin-macchiato-lavender-cursors";
|
2024-03-19 11:13:58 -06:00
|
|
|
};
|
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 = {
|
2024-07-22 13:30:55 -06:00
|
|
|
name = "catppuccin-macchiato-lavender-compact+rimless";
|
2024-03-18 19:45:31 -06:00
|
|
|
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-07-22 13:30:55 -06:00
|
|
|
|
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
|
|
|
}
|