2026-01-28

This commit is contained in:
Weckyy702
2026-01-28 15:27:20 +01:00
parent 3defad84fb
commit 6485cb234f
17 changed files with 611 additions and 307 deletions

View File

@@ -1,162 +1,175 @@
{ config, pkgs, username, inputs, ...}: {
imports = [
inputs.nixvim.homeModules.nixvim
inputs.catppuccin.homeModules.catppuccin
];
top @ {
config,
pkgs,
username,
inputs,
...
}: {
imports = [
inputs.nixvim.homeModules.nixvim
inputs.catppuccin.homeModules.catppuccin
inputs.spicetify-nix.homeManagerModules.default
./nixvim
];
#NOTE: MUST be kept up to date with nixpkgs!
home.stateVersion = "25.11";
#NOTE: MUST be kept up to date with nixpkgs!
home.stateVersion = "25.11";
home.username = username;
home.homeDirectory = "/home/${username}";
home.username = username;
home.homeDirectory = "/home/${username}";
home.packages = with pkgs; [
mpv
bitwarden-desktop
feh
grim
slurp
xdg-user-dirs
libqalculate
];
home.packages = with pkgs; [
mpv
bitwarden-desktop
feh
grim
slurp
xdg-user-dirs
libqalculate
xfce.thunar
prismlauncher
playerctl
];
programs.wofi.enable = true;
catppuccin.enable = true;
catppuccin.enable = true;
gtk = {
enable = true;
colorScheme = "dark";
font.name = "JetBrainsMono";
};
wayland.windowManager.hyprland = {
enable = true;
settings = import ./hyprland/settings.nix;
};
wayland.windowManager.hyprland = {
enable = true;
settings = (import ./hyprland/settings.nix) top;
};
#TODO: decide on waybar
#TODO: decide on waybar
programs.nixvim = {
enable = true;
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
clipboard.register = "unnamedplus";
colorschemes.catppuccin = {
enable = true;
settings.flavour = "mocha";
};
plugins.lualine.enable = true;
plugins.telescope = {
enable = true;
extensions.file-browser = {
enable = true;
settings = {
git_status = true;
hijack_netrw = true;
respect_gitignore = true;
fzf-native.enable = true;
fzf-native.settings.case_mode = "ignore_case";
};
};
};
plugins.web-devicons.enable = true;
plugins.treesitter = {
enable = true;
folding = true;
programs.zoxide = {
enable = true;
enableZshIntegration = true;
options = [
"--cmd cd"
];
};
};
lsp = {
inlayHints.enable = true;
#TODO: keymaps
servers = {
"*" = {
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
config.root_markers = [
".git"
];
};
clangd. enable = true;
rust-analzyer.enable = true;
rnix.enable = true;
};
};
};
programs.spicetify = let
spkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
enable = true;
enabledExtensions = with spkgs.extensions; [
fullAppDisplay
shuffle
aiBandBlocker
];
enabledCustomApps = with spkgs.apps; [
newReleases
];
theme = spkgs.themes.catppuccin;
colorScheme = "mocha";
};
programs.zsh = {
enable = true;
# For automatic login
profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec hyprland > /var/log/hypr.log
fi
'';
programs.vesktop = {
enable = true;
vencord.useSystem = true;
};
autocd = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = pkgs.lib.mkBefore ''
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
'';
plugins = [
{
name = "powerlevel10k";
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
file = "powerlevel10k.zsh-theme";
}
{
name = "p10k-config";
src = ./p10k;
file = "p10k.zsh";
}
];
programs.wofi.enable = true;
programs.zsh = {
enable = true;
# For automatic login
profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec hyprland
fi
'';
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "robbyrussell";
};
};
autocd = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = pkgs.lib.mkBefore ''
date
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
'';
plugins = [
{
name = "powerlevel10k";
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
file = "powerlevel10k.zsh-theme";
}
{
name = "p10k-config";
src = ./p10k;
file = "p10k.zsh";
}
];
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "robbyrussell";
};
};
programs.kitty = {
enable = true;
enableGitIntegration = true;
#TODO: kitty config
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.git = {
enable = true;
settings.user = {
email = "weckyy702@gmail.com";
name = "Weckyy702";
};
#TODO: signing
};
programs.kitty = {
enable = true;
enableGitIntegration = true;
font = {
name = "JetBrains Mono";
size = 10;
};
shellIntegration.enableZshIntegration = true;
#TODO: kitty config
};
services.hyprpaper = {
enable = true;
settings =
let
# TODO: this should be done more cleanly
wallpaper_path = "/home/weckyy702/Pictures/wallpapers/horizontal_16x9.png";
in
{
preload = wallpaper_path;
wallpaper = [
#TODO: this should be dynamic
"DP-1,${wallpaper_path}"
"HDMI-A-1,${wallpaper_path}"
];
};
};
programs.git = {
enable = true;
settings.user = {
email = "weckyy702@gmail.com";
name = "Weckyy702";
};
#TODO: signing
};
services.hyprpolkitagent.enable = true;
services.hyprpaper = {
enable = true;
settings = let
# TODO: this should be done more cleanly
wallpaper_path = ./hyprland/horizontal_16x9.png;
in {
preload = toString wallpaper_path;
wallpaper = [
#TODO: this should be dynamic
"DP-1,${wallpaper_path}"
"HDMI-A-1,${wallpaper_path}"
];
};
};
#TODO: hyprsunset?
services.hyprpolkitagent.enable = true;
services.ssh-agent = {
enable = true;
enableZshIntegration = true;
};
}