mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
update
This commit is contained in:
parent
d4fc7e2249
commit
6b6107d8d2
13 changed files with 83 additions and 18 deletions
|
|
@ -33,6 +33,7 @@
|
|||
value = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
private_browsing = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
dnsmasq
|
||||
|
|
|
|||
|
|
@ -54,5 +54,6 @@
|
|||
codex
|
||||
imagemagick
|
||||
miniserve
|
||||
jq
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
../gwenview.nix
|
||||
../dolphin.nix
|
||||
../../gwenview.nix
|
||||
../../dolphin.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# kdePackages.yakuake
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# vim:foldmethod=marker,
|
||||
# vim:foldmethod=marker
|
||||
{...}: {
|
||||
programs.niri = {
|
||||
settings.window-rules = [
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
UseTabForSwitchingSplitView = true;
|
||||
};
|
||||
VersionControl = {
|
||||
enabledPlugins = "Subversion,Git";
|
||||
EnabledPlugins = "Subversion,Git";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -30,4 +30,28 @@
|
|||
$DRY_RUN_CMD rm -f ~/.config/dolphinrc-override
|
||||
fi
|
||||
'';
|
||||
|
||||
home.file.".local/share/kio/servicemenus/move-file.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
MimeType=all/all
|
||||
Actions=to-inbox;to-public
|
||||
X-KDE-Submenu=Move file to...
|
||||
X-KDE-Submenu[CN]=将文件移动到
|
||||
Icon=mail-move
|
||||
|
||||
[Desktop Action to-inbox]
|
||||
Name=Inbox
|
||||
Icon=inbox
|
||||
Exec=mv "%f" $HOME/Inbox/
|
||||
|
||||
[Desktop Action to-public]
|
||||
Name=Public
|
||||
Icon=document-share
|
||||
Exec=mv "%f" $HOME/Public/
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
30
nixcfgs/users/js0ny/programs/magick.nix
Normal file
30
nixcfgs/users/js0ny/programs/magick.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.imagemagick];
|
||||
home.file.".local/share/kio/servicemenus/image-format.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
MimeType=image/*
|
||||
Actions=to-avif;to-webp;to-jpeg
|
||||
X-KDE-Submenu=Image Format Conversion
|
||||
X-KDE-Submenu[CN]=图像格式转换
|
||||
|
||||
[Desktop Action to-avif]
|
||||
Name=Convert to AVIF
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.avif"
|
||||
|
||||
[Desktop Action to-webp]
|
||||
Name=Convert to WebP
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.webp"
|
||||
|
||||
[Desktop Action to-jpeg]
|
||||
Name=Convert to JPEG
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.jpg"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,8 @@
|
|||
}: {
|
||||
home.packages = [pkgs.miniserve];
|
||||
home.file.".local/share/kio/servicemenus/miniserve.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
|
|
|
|||
|
|
@ -39,9 +39,11 @@
|
|||
./programs/gwenview.nix
|
||||
./programs/yazi.nix
|
||||
./programs/dolphin.nix
|
||||
./programs/magick.nix
|
||||
./programs/miniserve.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/desktop/plasma.nix
|
||||
./programs/desktop/plasma
|
||||
./programs/desktop/wayland-wm/niri
|
||||
|
||||
# General Program config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue