Redid setup. I swear the commit messages will get better

This commit is contained in:
Weckyy702
2026-01-16 00:21:04 +01:00
parent a561aa45e9
commit 156bd44710
8 changed files with 2044 additions and 21 deletions

View File

@@ -1,21 +1,68 @@
{ config, pkgs, username, ...}: {
{ config, pkgs, username, inputs, ...}: {
imports = [
inputs.nixvim.homeModules.nixvim
];
#NOTE: MUST be kept up to date with nixpkgs!
home.stateVersion = "25.11";
home.username = username;
home.homeDirectory = "/home/${username}";
home.packages = with pkgs; [
mpv
bitwarden-desktop
];
programs.kitty = {
enable = true;
};
programs.wofi.enable = true;
wayland.windowManager.hyprland = {
enable = true;
settings = {
settings = import ./hyprland/settings.nix;
};
programs.nixvim = {
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;
};
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;
};
};
};
@@ -27,11 +74,19 @@
exec hyprland
fi
'';
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";
@@ -54,13 +109,6 @@
};
};
programs.neovim = {
enable = true;
defaultEditor = true;
vimdiffAlias = true;
#TODO: nvim config. Maybe nixvim?
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
@@ -81,6 +129,24 @@
#TODO: signing
};
#NOTE: MUST be kept up to date with nixpkgs!
home.stateVersion = "25.11";
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}"
];
};
};
services.hyprpolkitagent.enable = true;
#TODO: hyprsunset?
}

View File

@@ -0,0 +1,5 @@
let
#TODO: this needs to be modular!
wallpaper = "/home/weckyy702/Pictures/wallpapers/horizontal_16x9.png";
in
{}

View File

@@ -0,0 +1,49 @@
{
"$mod" = "SUPER";
general = {
border_size = 0;
gaps_in = 5;
gaps_out = 10;
layout = "dwindle";
resize_on_border = true;
};
snap = {
};
input = {
kb_layout = "de";
};
bind = builtins.concatLists [
[
"$mod, Q, exit"
"$mod, Return, exec, kitty"
"$mod, D, exec, wofi --show drun"
"$mod, F2, exec, zen"
"$mod, c, killactive"
"$mod, f, fullscreen"
]
# Switch workspaces
(map (i: "$mod, ${builtins.toString i}, workspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
(map (i: "$mod+SHIFT, ${builtins.toString i}, movetoworkspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
];
decoration = {
shadow.enabled = false;
blur.enabled = true;
active_opacity = 0.8;
inactive_opacity = 0.8;
};
animations.enabled = false;
misc.disable_hyprland_logo = true;
cursor.inactive_timeout = 5;
ecosystem.no_update_news = true;
ecosystem.no_donation_nag = true;
}

File diff suppressed because it is too large Load Diff