chore: maintain
This commit is contained in:
parent
2378a66114
commit
25482857d4
58 changed files with 1095 additions and 747 deletions
43
home/user/image-viewer.nix
Normal file
43
home/user/image-viewer.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ loupe ];
|
||||
|
||||
xdg.mimeApps =
|
||||
let
|
||||
value = "org.gnome.Loupe.desktop";
|
||||
|
||||
associations = builtins.listToAttrs (
|
||||
map
|
||||
(name: {
|
||||
inherit name value;
|
||||
})
|
||||
[
|
||||
"image/png"
|
||||
"image/jpeg"
|
||||
"image/gif"
|
||||
"image/bmp"
|
||||
"image/webp"
|
||||
"image/tiff"
|
||||
"image/svg+xml"
|
||||
"image/x-icon"
|
||||
"image/avif"
|
||||
"image/heif"
|
||||
"image/heic"
|
||||
"image/jxl"
|
||||
"image/apng"
|
||||
"image/x-raw"
|
||||
"image/x-xbitmap"
|
||||
"image/x-xpixmap"
|
||||
"image/x-portable-bitmap"
|
||||
"image/x-portable-graymap"
|
||||
"image/x-portable-pixmap"
|
||||
"image/x-tga"
|
||||
"image/x-pcx"
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
@ -436,7 +436,10 @@ in
|
|||
ts-error-translator.enable = true;
|
||||
};
|
||||
};
|
||||
python.enable = true;
|
||||
python = {
|
||||
enable = true;
|
||||
format.type = [ "ruff" ];
|
||||
};
|
||||
markdown = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
inherit (lib) getExe';
|
||||
inherit (lib) getExe' getExe;
|
||||
yaziPlugins = pkgs.fetchFromGitHub {
|
||||
owner = "yazi-rs";
|
||||
repo = "plugins";
|
||||
|
|
@ -43,11 +43,11 @@ in
|
|||
enableFishIntegration = true;
|
||||
|
||||
plugins = {
|
||||
toggle-pane = ''${yaziPlugins}/toggle-pane.yazi'';
|
||||
mount = ''${yaziPlugins}/mount.yazi'';
|
||||
zoom = ''${yaziPlugins}/zoom'';
|
||||
vcs-files = ''${yaziPlugins}/vcs-files'';
|
||||
git = ''${yaziPlugins}/git'';
|
||||
toggle-pane = "${yaziPlugins}/toggle-pane.yazi";
|
||||
mount = "${yaziPlugins}/mount.yazi";
|
||||
zoom = "${yaziPlugins}/zoom";
|
||||
vcs-files = "${yaziPlugins}/vcs-files";
|
||||
git = "${yaziPlugins}/git";
|
||||
};
|
||||
|
||||
settings = {
|
||||
|
|
@ -77,7 +77,7 @@ in
|
|||
];
|
||||
|
||||
player = [
|
||||
{ run = ''mpv --force-window "$1"''; }
|
||||
{ run = ''${getExe pkgs.mpv} --force-window "$1"''; }
|
||||
];
|
||||
|
||||
open = [
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ let
|
|||
|
||||
zellij-sessionizer-src = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/dachxy/zellij-sessionizer/refs/heads/main/zellij-sessionizer";
|
||||
sha256 = "sha256:12kbni75x9g424bymky8cy84i354j654rfmz9bffnabbblccfbpn";
|
||||
sha256 = "sha256:0p6s2mwcya448vgag42akwlfmzr9nw1vxh6gv5lmz1xmyrhkysjd";
|
||||
};
|
||||
|
||||
zellij-sessionizer = pkgs.writeShellScriptBin "zellij-sessionizer" ''
|
||||
|
|
|
|||
|
|
@ -172,8 +172,6 @@ in
|
|||
"application/json"
|
||||
"application/pdf"
|
||||
"text/html"
|
||||
"image/png"
|
||||
"image/jpeg"
|
||||
]
|
||||
);
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue