mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 00:30:41 +00:00
Update file mgrs
This commit is contained in:
parent
2d3b54d98e
commit
20237ad40c
12 changed files with 47 additions and 475 deletions
|
@ -1,58 +1,52 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
device = osConfig.modules.device;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "server" "lite"];
|
||||
in {
|
||||
config = lib.mkIf (builtins.elem device.type acceptedTypes) {
|
||||
home.packages = with pkgs; [
|
||||
xplr
|
||||
];
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
xplr
|
||||
];
|
||||
|
||||
xdg.configFile."xplr/init.lua".text = let
|
||||
# get plugin derivations from plugins.nix so that this file remains clean
|
||||
inherit (import ./plugins.nix pkgs) wl-clipboard-plugin nuke-plugin;
|
||||
in ''
|
||||
version = '${pkgs.xplr.version}'
|
||||
xdg.configFile."xplr/init.lua".text = let
|
||||
# get plugin derivations from plugins.nix so that this file remains clean
|
||||
inherit (import ./plugins.nix pkgs) wl-clipboard-plugin nuke-plugin;
|
||||
in ''
|
||||
version = '${pkgs.xplr.version}'
|
||||
|
||||
package.path =
|
||||
"${wl-clipboard-plugin}/init.lua;" ..
|
||||
"${nuke-plugin}/init.lua;" ..
|
||||
package.path
|
||||
package.path =
|
||||
"${wl-clipboard-plugin}/init.lua;" ..
|
||||
"${nuke-plugin}/init.lua;" ..
|
||||
package.path
|
||||
|
||||
|
||||
require("wl-clipboard").setup{
|
||||
copy_command = "wl-copy -t text/uri-list",
|
||||
paste_command = "wl-paste",
|
||||
keep_selection = true,
|
||||
}
|
||||
require("wl-clipboard").setup{
|
||||
copy_command = "wl-copy -t text/uri-list",
|
||||
paste_command = "wl-paste",
|
||||
keep_selection = true,
|
||||
}
|
||||
|
||||
require("nuke").setup{
|
||||
pager = "less -R",
|
||||
open = {
|
||||
run_executables = true, -- default: false
|
||||
custom = {
|
||||
{extension = "jpg", command = "imv {}"},
|
||||
{extension = "pdf", command = "zathura {}"},
|
||||
{mime_regex = "^video/.*", command = "mpv {}"},
|
||||
{mime_regex = ".*", command = "xdg-open {}"}
|
||||
}
|
||||
},
|
||||
|
||||
view = {
|
||||
show_line_numbers = true, -- default: false
|
||||
},
|
||||
|
||||
smart_view = {
|
||||
custom = {
|
||||
{extension = "so", command = "ldd -r {} | less"},
|
||||
},
|
||||
require("nuke").setup{
|
||||
pager = "less -R",
|
||||
open = {
|
||||
run_executables = true, -- default: false
|
||||
custom = {
|
||||
{extension = "jpg", command = "imv {}"},
|
||||
{extension = "pdf", command = "zathura {}"},
|
||||
{mime_regex = "^video/.*", command = "mpv {}"},
|
||||
{mime_regex = ".*", command = "xdg-open {}"}
|
||||
}
|
||||
},
|
||||
|
||||
view = {
|
||||
show_line_numbers = true, -- default: false
|
||||
},
|
||||
|
||||
smart_view = {
|
||||
custom = {
|
||||
{extension = "so", command = "ldd -r {} | less"},
|
||||
},
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue