This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/home.nix
T
2026-09-21 16:36:29 +02:00

232 lines
6.5 KiB
Nix

{
config,
pkgs,
lib,
hyprmod,
spicetify,
...
}:
{
nix.package = pkgs.nix;
nixpkgs.config.allowUnfree = true;
home.username = "johannes";
home.homeDirectory =
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/johannes" else "/home/johannes";
home.stateVersion = "24.05";
home.pointerCursor = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
enable = true;
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 24;
gtk.enable = true;
x11.enable = true;
hyprcursor.enable = true;
hyprcursor.size = 24;
};
home.packages =
with pkgs;
[
curl
wget
neovim
ripgrep
fd
nushell
starship
zoxide
lazygit
fastfetch
eza
atuin
zellij
herdr
unp
carapace
bun
nodejs
pipx
python3
uv
rustup
cargo-binstall
mise
television
pay-respects
sops
age
devenv
pi-coding-agent
yazi
unzip
obsidian
htop
mpv
jellytui
tlrc
mago
zotero
]
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
owncloud-client
wl-clipboard
cliphist
hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default
librepods
easyeffects
lutris
claude-code
imagemagick
mangohud
libsecret
termius
];
home.file = {
".config" = {
source = ./config;
recursive = true;
};
".config/yazi".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/yazi";
".config/zed".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/zed";
".config/btop".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop";
".config/lazygit".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/lazygit";
".config/hypr".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/hypr";
".config/quickshell".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/quickshell";
".local/share" = {
source = ./local_share;
recursive = true;
};
".local/bin" = {
source = ./local_bin;
recursive = true;
};
".agents".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents";
".claude/skills".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents/skills";
".pi/agent/settings.json".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
".pi/extensions".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions";
};
home.file.".config/ghostty/config".text = ''
font-family = JetBrainsMono Nerd Font
theme = dark:Catppuccin Mocha,light:Catppuccin Latte
window-theme = ghostty
background-blur = true
auto-update = check
macos-option-as-alt = left
shell-integration-features = ssh-env,ssh-terminfo
''
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
command = nu
'';
fonts.fontconfig.enable = true;
home.activation.cloneNvim = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -d "$HOME/.config/nvim" ]; then
${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim"
fi
'';
programs.git = {
enable = true;
lfs.enable = true;
settings = {
credential.helper =
if pkgs.stdenv.hostPlatform.isLinux then
"${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret"
else
"osxkeychain";
user.name = "Johannes Kresner";
user.email = "johannes@jokresner.de";
push.autoSetupRemote = true;
};
};
programs.nixcord = {
enable = true;
vesktop.enable = true;
discord.vencord.enable = true;
config = {
themeLinks = [
"https://raw.githubusercontent.com/catppuccin/discord/main/themes/mocha.theme.css"
];
plugins = {
# --- UI & Experience ---
betterFolders.enable = true; # Better folder icons and controls
betterRoleContext.enable = true; # Show roles in more places
clearUrls.enable = true; # Remove tracking parameters from links
memberCount.enable = true; # Show server member count next to the server name
showHiddenThings.enable = true; # See hidden channels (read-only)
showMeYourName.enable = true; # Show original usernames next to nicknames
alwaysAnimate.enable = true; # Always animate channel icons
biggerStreamPreview.enable = true; # Bigger stream previews
# --- Media & Embeds ---
fixSpotifyEmbeds.enable = true; # Fix broken Spotify embeds
fixYoutubeEmbeds.enable = true; # Fix broken YouTube video embeds
volumeBooster.enable = true; # Boost user volume past 200%
youtubeAdblock.enable = true; # Block ads inside YouTube embeds
spotifyControls.enable = true; # Show Spotify controls
# --- System & Fixes ---
crashHandler.enable = true; # Prevent Discord from completely crashing
webScreenShareFixes.enable = pkgs.stdenv.hostPlatform.isLinux; # Essential for Wayland screen sharing
# --- Utility & Fun ---
fakeNitro.enable = true; # Stream in high quality, use external emojis
messageLogger.enable = true; # Keep deleted messages visible in your client locally
whoReacted.enable = true; # Show avatars of users who reacted to a message
};
};
};
programs.spicetify =
let
spicePkgs = spicetify.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
hidePodcasts
shuffle # shuffle+ (special characters are sanitized out of extension names)
];
enabledCustomApps = with spicePkgs.apps; [
newReleases
ncsVisualizer
];
enabledSnippets = with spicePkgs.snippets; [
rotatingCoverart
pointer
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
};
programs.btop = {
enable = true;
package = pkgs.btop.override { cudaSupport = true; };
};
programs.home-manager.enable = true;
}