2024-06-04 17:47:21 -03:00
|
|
|
{ pkgs, ... }:
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
{
|
|
|
|
#
|
|
|
|
## HOME CONFIGURATION #
|
|
|
|
#
|
|
|
|
|
|
|
|
# Import configurations for better modularity.
|
|
|
|
imports = [
|
2024-02-01 21:13:16 -03:00
|
|
|
./programs/fish
|
2023-11-05 04:53:31 -03:00
|
|
|
./programs/git.nix
|
2024-02-01 21:13:00 -03:00
|
|
|
./programs/hyprland
|
2023-11-05 04:53:31 -03:00
|
|
|
./programs/mangohud.nix
|
2024-02-16 19:39:03 -03:00
|
|
|
./programs/neovim
|
2023-11-05 04:53:31 -03:00
|
|
|
./programs/obs-studio.nix
|
2024-02-01 21:13:16 -03:00
|
|
|
./programs/rofi
|
2024-06-04 17:45:53 -03:00
|
|
|
./programs/tmux
|
2023-11-05 04:53:31 -03:00
|
|
|
./programs/waybar.nix
|
2024-02-01 21:12:34 -03:00
|
|
|
./programs/wezterm
|
2023-11-05 04:53:31 -03:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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
|
2024-01-16 11:33:01 -03:00
|
|
|
# if you don't want to manage your shell through Home Manager.
|
2023-12-30 12:54:44 -03:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
NIXOS_OZONE_WL = "1";
|
2024-04-11 20:02:20 -03:00
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
XCURSOR_SIZE = 36;
|
2023-12-30 12:54:44 -03:00
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
##
|
|
|
|
## PACKAGES #
|
|
|
|
##
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
# 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
|
|
|
|
brightnessctl
|
|
|
|
discord
|
2024-05-21 15:55:59 -03:00
|
|
|
fastfetch
|
2023-11-05 04:53:31 -03:00
|
|
|
firefox
|
|
|
|
pavucontrol
|
|
|
|
qbittorrent
|
2024-06-04 17:47:21 -03:00
|
|
|
qdirstat
|
2024-05-13 11:59:43 -03:00
|
|
|
vesktop
|
2023-11-05 04:53:31 -03:00
|
|
|
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
|
2023-11-29 10:16:20 -03:00
|
|
|
protontricks
|
2024-05-02 17:26:59 -03:00
|
|
|
wineWowPackages.stagingFull
|
2023-11-29 10:16:20 -03:00
|
|
|
winetricks
|
2024-02-25 09:36:42 -03:00
|
|
|
xonotic
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
## Libraries
|
2023-12-18 19:37:56 -03:00
|
|
|
libsForQt5.kdegraphics-thumbnailers
|
|
|
|
libsForQt5.kio-extras
|
2023-12-30 12:54:44 -03:00
|
|
|
rnnoise-plugin
|
|
|
|
xwaylandvideobridge
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
## Development
|
|
|
|
lazygit
|
2023-12-12 11:10:50 -03:00
|
|
|
vscode-extensions.vadimcn.vscode-lldb
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
## Desktop environment
|
2023-12-30 12:54:44 -03:00
|
|
|
cliphist
|
2023-11-05 04:53:31 -03:00
|
|
|
grim
|
|
|
|
mako
|
2023-11-30 15:10:17 -03:00
|
|
|
polkit-kde-agent
|
2023-11-05 04:53:31 -03:00
|
|
|
slurp
|
|
|
|
swww
|
2023-11-30 14:44:14 -03:00
|
|
|
|
|
|
|
## Theming
|
|
|
|
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
2023-12-18 19:37:56 -03:00
|
|
|
libsForQt5.qtwayland
|
|
|
|
qt6Packages.qtstyleplugin-kvantum
|
|
|
|
qt6Packages.qtwayland
|
2024-01-16 11:33:01 -03:00
|
|
|
|
|
|
|
# Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS!
|
2024-04-11 20:04:10 -03:00
|
|
|
(
|
2024-06-24 03:20:30 -03:00
|
|
|
let
|
|
|
|
base = pkgs.appimageTools.defaultFhsEnvArgs;
|
|
|
|
in
|
|
|
|
pkgs.buildFHSUserEnv (
|
|
|
|
base
|
|
|
|
// {
|
|
|
|
name = "fhs";
|
|
|
|
targetPkgs =
|
|
|
|
pkgs:
|
|
|
|
(
|
|
|
|
# pkgs.buildFHSUserEnv provides only a minimal FHS environment,
|
|
|
|
# lacking many basic packages needed by most software.
|
|
|
|
# Therefore, we need to add them manually.
|
|
|
|
#
|
|
|
|
# pkgs.appimageTools provides basic packages required by most software.
|
|
|
|
(base.targetPkgs pkgs) ++ (with pkgs; [ nodejs ])
|
|
|
|
);
|
|
|
|
profile = "export FHS=1";
|
|
|
|
runScript = "bash";
|
|
|
|
extraOutputsToInstall = [ "dev" ];
|
|
|
|
}
|
|
|
|
)
|
2024-04-11 20:04:10 -03:00
|
|
|
)
|
2023-11-05 04:53:31 -03:00
|
|
|
];
|
|
|
|
|
|
|
|
#
|
|
|
|
## DOTFILES #
|
|
|
|
#
|
|
|
|
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file = {
|
2023-12-12 10:16:33 -03:00
|
|
|
# Cattpuccin theme for fish shell.
|
2024-06-24 03:20:30 -03:00
|
|
|
".config/fish/themes/Catppuccin-Frappe.theme".source = ./programs/fish/Catppuccin-Frappe.theme;
|
2023-11-05 04:53:31 -03:00
|
|
|
|
2023-12-12 10:16:33 -03:00
|
|
|
# Configuration for gamemode, for running games with optimizations.
|
|
|
|
".config/gamemode.ini".source = ./programs/gamemode.ini;
|
2023-11-05 04:53:31 -03:00
|
|
|
|
2023-12-12 10:16:33 -03:00
|
|
|
# Configuration for mako, a notification daemon.
|
|
|
|
".config/mako".source = ./programs/mako;
|
2023-11-05 04:53:31 -03:00
|
|
|
|
2023-12-12 10:16:33 -03:00
|
|
|
## Kvantum's theme configuration.
|
2023-11-30 14:44:14 -03:00
|
|
|
".config/Kvantum/Catppuccin-Frappe-Lavender" = {
|
2024-03-25 22:33:01 -03:00
|
|
|
source = "${
|
2024-06-24 03:20:30 -03:00
|
|
|
pkgs.catppuccin-kvantum.override {
|
|
|
|
accent = "Lavender";
|
|
|
|
variant = "Frappe";
|
|
|
|
}
|
|
|
|
}/share/Kvantum/Catppuccin-Frappe-Lavender";
|
2023-11-30 14:44:14 -03:00
|
|
|
};
|
|
|
|
|
2023-12-12 10:16:33 -03:00
|
|
|
".config/Kvantum/kvantum.kvconfig".text = ''
|
|
|
|
[General]
|
|
|
|
theme=Catppuccin-Frappe-Lavender
|
|
|
|
'';
|
|
|
|
##
|
|
|
|
|
|
|
|
## Themeing configuration for qt5 and qt6
|
|
|
|
".config/qt5ct/colors".source = ./theming/qt5ct;
|
|
|
|
|
2024-06-24 03:20:30 -03:00
|
|
|
".config/qt6ct/colors".source = ./theming/qt5ct; # We use the qt5ct because it's the SAME spec
|
2023-12-12 10:16:33 -03:00
|
|
|
##
|
|
|
|
|
|
|
|
# Configure pipewire for microphone noise supression.
|
|
|
|
".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
|
|
|
|
plugin = ${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so
|
|
|
|
label = noise_suppressor_mono
|
|
|
|
control = {
|
2023-12-18 19:37:56 -03:00
|
|
|
"VAD Threshold (%)" = 60.0
|
|
|
|
"VAD Grace Period (ms)" = 175
|
|
|
|
"Retroactive VAD Grace (ms)" = 50
|
2023-12-12 10:16:33 -03:00
|
|
|
}
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|
2023-12-12 10:16:33 -03:00
|
|
|
]
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|
2023-12-12 10:16:33 -03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|
2023-12-12 10:16:33 -03:00
|
|
|
]
|
|
|
|
'';
|
2023-11-05 04:53:31 -03:00
|
|
|
|
2023-12-18 19:37:56 -03:00
|
|
|
# Configure DXVK
|
|
|
|
".config/dxvk.conf".text = ''
|
|
|
|
dxgi.tearFree = True
|
|
|
|
dxvk.enableGraphicsPipelineLibrary = Auto
|
2023-12-30 12:54:44 -03:00
|
|
|
|
|
|
|
dxvk.enableAsync = True
|
2023-12-18 19:37:56 -03:00
|
|
|
'';
|
|
|
|
|
2023-12-12 10:16:33 -03:00
|
|
|
# My utility scripts
|
|
|
|
".local/share/scripts".source = ./scripts;
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
## Theming
|
|
|
|
home.pointerCursor = {
|
|
|
|
package = pkgs.catppuccin-cursors.frappeLavender;
|
2024-06-04 17:47:38 -03:00
|
|
|
name = "catppuccin-frappe-lavender-cursors";
|
2023-11-05 04:53:31 -03:00
|
|
|
|
|
|
|
gtk.enable = true;
|
2024-06-04 17:47:38 -03:00
|
|
|
x11.enable = true;
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
# Configure GTK.
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
theme = {
|
2024-05-02 17:26:37 -03:00
|
|
|
name = "Catppuccin-Frappe-Standard-Lavender-Dark";
|
2023-11-05 04:53:31 -03:00
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [ "lavender" ];
|
|
|
|
tweaks = [ "rimless" ];
|
|
|
|
variant = "frappe";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
2024-05-02 17:26:37 -03:00
|
|
|
name = "Papirus-Dark";
|
2023-11-05 04:53:31 -03:00
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
accent = "lavender";
|
|
|
|
flavor = "frappe";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure QT
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-05-02 17:26:37 -03:00
|
|
|
platformTheme.name = "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";
|
2024-02-07 19:12:51 -03:00
|
|
|
"video/x-matroska" = "vlc";
|
|
|
|
"x-scheme-handler/about" = "firefox";
|
2023-11-29 10:15:32 -03:00
|
|
|
"x-scheme-handler/http" = "firefox";
|
|
|
|
"x-scheme-handler/https" = "firefox";
|
|
|
|
"x-scheme-handler/unknown" = "firefox";
|
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|