mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(dolphin): declarative dolphin
This commit is contained in:
parent
94d176692c
commit
d4fc7e2249
7 changed files with 264 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
../gwenview.nix
|
||||
../dolphin.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# kdePackages.yakuake
|
||||
|
|
|
|||
33
nixcfgs/users/js0ny/programs/dolphin.nix
Normal file
33
nixcfgs/users/js0ny/programs/dolphin.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
|
|
@ -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; [
|
||||
|
|
|
|||
9
nixcfgs/users/js0ny/programs/yazi.nix
Normal file
9
nixcfgs/users/js0ny/programs/yazi.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{...}: {
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
shellWrapperName = "y";
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue