2023-11-05 04:53:31 -03:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
#
|
|
|
|
## HOME CONFIGURATION #
|
|
|
|
#
|
|
|
|
|
|
|
|
# Import configurations for better modularity.
|
|
|
|
imports = [
|
|
|
|
./programs/fish/config.nix
|
|
|
|
./programs/git.nix
|
|
|
|
./programs/hyprland/config.nix
|
|
|
|
./programs/mangohud.nix
|
|
|
|
./programs/obs-studio.nix
|
|
|
|
./programs/rofi/default.nix
|
|
|
|
./programs/waybar.nix
|
|
|
|
./programs/wezterm/config.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Home Manager needs a bit of information about you and the paths it should
|
|
|
|
# manage.
|
|
|
|
home.username = "wizardlink";
|
|
|
|
home.homeDirectory = "/home/wizardlink";
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
|
|
# introduces backwards incompatible changes.
|
|
|
|
#
|
|
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
|
|
# release notes.
|
|
|
|
home.stateVersion = "23.05"; # Please read the comment before changing.
|
|
|
|
|
|
|
|
# You can also manage environment variables but you will have to manually
|
|
|
|
# source
|
|
|
|
#
|
|
|
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# /etc/profiles/per-user/wizardlink/etc/profile.d/hm-session-vars.sh
|
|
|
|
# if you don't want to manage your shell through Home Manager.
|
|
|
|
home.sessionVariables = {
|
|
|
|
NNN_FIFO = "/tmp/nnn.fifo";
|
|
|
|
NNN_PLUG = "v:preview-tui";
|
|
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
|
|
};
|
|
|
|
|
|
|
|
##
|
|
|
|
## PACKAGES #
|
|
|
|
##
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
# Configure NeoVim
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
lua-language-server
|
|
|
|
stylua
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure fish
|
|
|
|
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# # You can also create simple shell scripts directly inside your
|
|
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
|
|
# # environment:
|
|
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
|
|
# echo "Hello, ${config.home.username}!"
|
|
|
|
# '')
|
|
|
|
|
|
|
|
## Tools
|
|
|
|
# Utilities
|
|
|
|
(callPackage ./programs/vesktop/default.nix {})
|
|
|
|
brightnessctl
|
|
|
|
discord
|
|
|
|
firefox
|
2023-11-10 14:47:34 -03:00
|
|
|
logseq
|
2023-11-05 04:53:31 -03:00
|
|
|
pavucontrol
|
|
|
|
pulseaudio
|
|
|
|
qbittorrent
|
|
|
|
tigervnc
|
|
|
|
vlc
|
|
|
|
yt-dlp
|
|
|
|
zathura
|
|
|
|
|
|
|
|
# Editing
|
2023-11-29 10:16:20 -03:00
|
|
|
krita
|
2023-11-05 04:53:31 -03:00
|
|
|
libreoffice
|
2023-11-29 10:16:20 -03:00
|
|
|
shotcut
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
## Entertainment
|
|
|
|
jellyfin-media-player
|
|
|
|
spotify
|
|
|
|
|
|
|
|
# Gaming
|
|
|
|
dolphin-emu
|
|
|
|
path-of-building
|
2023-11-29 10:16:20 -03:00
|
|
|
protontricks
|
|
|
|
wineWowPackages.waylandFull
|
|
|
|
winetricks
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
## Libraries
|
|
|
|
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
|
|
rnnoise-plugin
|
|
|
|
|
|
|
|
## Development
|
|
|
|
lazygit
|
|
|
|
neofetch
|
|
|
|
|
|
|
|
## Desktop environment
|
|
|
|
eww-wayland
|
|
|
|
grim
|
|
|
|
mako
|
|
|
|
slurp
|
|
|
|
swww
|
2023-11-29 10:16:20 -03:00
|
|
|
wl-clipboard # Clipboard for Wayland
|
|
|
|
xclip # Clipboard fo X11
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
# File management
|
|
|
|
atool
|
|
|
|
glow
|
|
|
|
imagemagick
|
|
|
|
nnn
|
|
|
|
poppler
|
|
|
|
];
|
|
|
|
|
|
|
|
#
|
|
|
|
## DOTFILES #
|
|
|
|
#
|
|
|
|
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file = {
|
|
|
|
".config/fish/themes/Catppuccin-Frappe.theme" = {
|
|
|
|
source = ./programs/fish/Catppuccin-Frappe.theme;
|
|
|
|
};
|
|
|
|
|
|
|
|
".config/gamemode.ini" = {
|
|
|
|
source = ./programs/gamemode.ini;
|
|
|
|
};
|
|
|
|
|
|
|
|
".config/mako" = {
|
|
|
|
source = ./programs/mako;
|
|
|
|
};
|
|
|
|
|
|
|
|
".config/nvim" = {
|
|
|
|
source = ./programs/nvim;
|
|
|
|
};
|
|
|
|
|
|
|
|
".config/qt5ct/colors" = {
|
|
|
|
source = ./theming/qt5ct;
|
|
|
|
};
|
|
|
|
|
|
|
|
".config/pipewire/pipewire.conf.d/99-input-denoising.conf" = {
|
|
|
|
text = ''
|
|
|
|
context.modules = [
|
|
|
|
{ name = libpipewire-module-filter-chain
|
|
|
|
args = {
|
|
|
|
node.description = "Noise Canceling source"
|
|
|
|
media.name = "Noise Canceling source"
|
|
|
|
filter.graph = {
|
|
|
|
nodes = [
|
|
|
|
{
|
|
|
|
type = ladspa
|
|
|
|
name = rnnoise
|
2023-11-05 04:56:50 -03:00
|
|
|
plugin = ${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so
|
2023-11-05 04:53:31 -03:00
|
|
|
label = noise_suppressor_mono
|
|
|
|
control = {
|
2023-11-29 10:15:32 -03:00
|
|
|
"VAD Threshold (%)" = 30.0
|
2023-11-05 04:53:31 -03:00
|
|
|
"VAD Grace Period (ms)" = 300
|
|
|
|
"Retroactive VAD Grace (ms)" = 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
capture.props = {
|
|
|
|
node.name = "capture.rnnoise_source"
|
|
|
|
node.passive = true
|
|
|
|
audio.rate = 48000
|
|
|
|
}
|
|
|
|
playback.props = {
|
|
|
|
node.name = "rnnoise_source"
|
|
|
|
media.class = Audio/Source
|
|
|
|
audio.rate = 48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
".local/share/scripts" = {
|
|
|
|
source = ./scripts;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
## Theming
|
|
|
|
home.pointerCursor = {
|
|
|
|
package = pkgs.catppuccin-cursors.frappeLavender;
|
|
|
|
name = "Catppuccin-Frappe-Lavender-Cursors";
|
|
|
|
|
|
|
|
gtk.enable = true;
|
|
|
|
x11 = {
|
|
|
|
enable = true;
|
|
|
|
defaultCursor = "Catppuccin-Frappe-Lavender-Cursors";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure GTK.
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
theme = {
|
|
|
|
name = "Catppuccin-Frappe-Lavender";
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [ "lavender" ];
|
|
|
|
tweaks = [ "rimless" ];
|
|
|
|
variant = "frappe";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
|
|
|
name = "Papirus";
|
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
accent = "lavender";
|
|
|
|
flavor = "frappe";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure QT
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2023-11-10 14:47:03 -03:00
|
|
|
platformTheme = "qtct";
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
2023-11-29 10:15:32 -03:00
|
|
|
|
|
|
|
# Configure XDG
|
|
|
|
xdg.mimeApps.defaultApplications = {
|
|
|
|
"text/html" = "firefox";
|
|
|
|
"x-scheme-handler/http" = "firefox";
|
|
|
|
"x-scheme-handler/https" = "firefox";
|
|
|
|
"x-scheme-handler/about" = "firefox";
|
|
|
|
"x-scheme-handler/unknown" = "firefox";
|
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|