166 lines
5.2 KiB
Nix
166 lines
5.2 KiB
Nix
{ config, pkgs, lib, hyprmod, ... }:
|
|
|
|
{
|
|
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; [
|
|
git
|
|
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
|
|
btop
|
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
|
owncloud-client
|
|
wl-clipboard
|
|
cliphist
|
|
hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
];
|
|
|
|
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";
|
|
".local/share" = {
|
|
source = ./local_share;
|
|
recursive = true;
|
|
};
|
|
".local/bin" = {
|
|
source = ./local_bin;
|
|
recursive = true;
|
|
};
|
|
".agents" = {
|
|
source = ./agents;
|
|
recursive = true;
|
|
};
|
|
".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";
|
|
};
|
|
|
|
age.identityPaths = [ "${config.home.homeDirectory}/.config/age/keys.txt" ];
|
|
age.secrets."git_config" = {
|
|
file = ./secrets/git_config.age;
|
|
path = "${config.home.homeDirectory}/.config/git/config";
|
|
};
|
|
age.secrets."jj_config" = {
|
|
file = ./secrets/jj_config.age;
|
|
path = "${config.home.homeDirectory}/.config/jj/config.toml";
|
|
};
|
|
|
|
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 = nushell
|
|
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.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.home-manager.enable = true;
|
|
}
|