feat(dolphin): declarative dolphin

This commit is contained in:
js0ny 2025-11-12 06:27:54 +00:00
parent 94d176692c
commit d4fc7e2249
7 changed files with 264 additions and 6 deletions

View file

@ -6,12 +6,6 @@
alacritty
warp-terminal
# Explorer
kdePackages.dolphin
kdePackages.dolphin-plugins # dolphin git integration
kdePackages.konsole # dolphin terminal integration
yazi # terminal file manager
# PDF Viewer
kdePackages.okular # default
sioyek

View file

@ -5,6 +5,7 @@
}: {
imports = [
../gwenview.nix
../dolphin.nix
];
home.packages = with pkgs; [
# kdePackages.yakuake

View file

@ -0,0 +1,33 @@
{
pkgs,
lib,
...
}: {
home.packages = with pkgs.kdePackages; [
dolphin
dolphin-plugins # dolphin git integration
konsole # dolphin terminal integration
];
xdg.configFile."dolphinrc-override".text = lib.generators.toINI {} {
General = {
ShowSelectionToggle = false;
UseTabForSwitchingSplitView = true;
};
VersionControl = {
enabledPlugins = "Subversion,Git";
};
};
# Manually merge dolphin config to existing file
home.activation.mergeDolphinrc = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ -f ~/.config/dolphinrc-override ]; then
# Create dolphinrc if it doesn't exist
touch ~/.config/dolphinrc
# Merge the override file into the main config
${pkgs.crudini}/bin/crudini --merge ~/.config/dolphinrc < ~/.config/dolphinrc-override
$DRY_RUN_CMD rm -f ~/.config/dolphinrc-override
fi
'';
}

View file

@ -5,9 +5,20 @@
extraPackages = epkgs:
with epkgs; [
evil
evil-leader
evil-commentary
evil-surround
evil-mc
evil-goggles
telega
beancount
counsel
company
vertico
marginalia
dirvish
nix-ts-mode
flycheck
];
};
home.packages = with pkgs; [

View file

@ -0,0 +1,9 @@
{...}: {
programs.yazi = {
enable = true;
enableZshIntegration = true;
enableFishIntegration = true;
enableNushellIntegration = true;
shellWrapperName = "y";
};
}

View file

@ -36,6 +36,9 @@
./programs/ollama.nix
./programs/sops.nix
./programs/pdf2zh.nix
./programs/gwenview.nix
./programs/yazi.nix
./programs/dolphin.nix
# Desktop Linux
./programs/desktop/plasma.nix