Compare commits
12 Commits
94559de7ae
...
5e34285db2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e34285db2 | ||
|
|
9612646c55 | ||
|
|
7324904db9 | ||
|
|
132c169e24 | ||
|
|
207961e397 | ||
|
|
73339cfc50 | ||
|
|
0fbb54a04a | ||
|
|
9619164eb4 | ||
|
|
343fc2ac4e | ||
|
|
9c98199ee3 | ||
|
|
3652cdfca9 | ||
|
|
2699268b81 |
@@ -31,6 +31,7 @@
|
|||||||
./system-modules/nvidia.nix
|
./system-modules/nvidia.nix
|
||||||
./system-modules/ollama.nix
|
./system-modules/ollama.nix
|
||||||
./system-modules/qmk.nix
|
./system-modules/qmk.nix
|
||||||
|
./system-modules/scanning.nix
|
||||||
./system-modules/sops.nix
|
./system-modules/sops.nix
|
||||||
./system-modules/sound.nix
|
./system-modules/sound.nix
|
||||||
./system-modules/sshd.nix
|
./system-modules/sshd.nix
|
||||||
|
|||||||
@@ -100,6 +100,10 @@
|
|||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
functions = {
|
functions = {
|
||||||
|
take = /* bash */ ''
|
||||||
|
mkdir $argv
|
||||||
|
cd $argv
|
||||||
|
'';
|
||||||
# gpg = '';
|
# gpg = '';
|
||||||
# set bold \e[1m
|
# set bold \e[1m
|
||||||
# set green \e[32m
|
# set green \e[32m
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
# nil # nix language server
|
# nil # nix language server
|
||||||
# nixd # specified in nixd.nix
|
# nixd # specified in nixd.nix
|
||||||
gopls
|
gopls
|
||||||
|
delve
|
||||||
python311Packages.python-lsp-server
|
python311Packages.python-lsp-server
|
||||||
jdt-language-server
|
jdt-language-server
|
||||||
ruff
|
ruff
|
||||||
@@ -33,45 +34,175 @@
|
|||||||
# theme = "base16_terminal";
|
# theme = "base16_terminal";
|
||||||
theme = "base16";
|
theme = "base16";
|
||||||
editor = {
|
editor = {
|
||||||
|
scrolloff = 5;
|
||||||
|
mouse = true;
|
||||||
|
# default-yank-register = "\"";
|
||||||
|
middle-click-paste = false;
|
||||||
|
scroll-lines = 3;
|
||||||
|
shell = ["sh" "-c"];
|
||||||
|
line-number = "relative";
|
||||||
|
cursorline = true;
|
||||||
|
cursorcolumn = true;
|
||||||
|
# continue-comments = false;
|
||||||
|
auto-completion = true;
|
||||||
|
path-completion = true;
|
||||||
|
auto-format = false;
|
||||||
|
idle-timeout = 250;
|
||||||
|
completion-timeout = 5;
|
||||||
|
preview-completion-insert = true;
|
||||||
|
completion-trigger-len = 1;
|
||||||
|
auto-info = true;
|
||||||
|
true-color = false; # is detected automatically if set to false
|
||||||
|
undercurl = false; # is detected automatically if set to false
|
||||||
|
rulers = [];
|
||||||
|
bufferline = "always";
|
||||||
|
color-modes = true;
|
||||||
|
text-width = 120;
|
||||||
|
workspace-lsp-roots = [];
|
||||||
|
default-line-ending = "native";
|
||||||
|
insert-final-newline = false;
|
||||||
|
popup-border = "all";
|
||||||
|
indent-heuristic = "hybrid";
|
||||||
|
jump-label-alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||||
|
# clip-board-provider = # selected automatically
|
||||||
|
end-of-line-diagnostics = "hint";
|
||||||
|
statusline = {
|
||||||
|
left = [ "mode"
|
||||||
|
"spinner"
|
||||||
|
"file-name"
|
||||||
|
"read-only-indicator"
|
||||||
|
"file-type"
|
||||||
|
"version-control"
|
||||||
|
];
|
||||||
|
center = [
|
||||||
|
"position-percentage"
|
||||||
|
"total-line-numbers"
|
||||||
|
"register"
|
||||||
|
];
|
||||||
|
right = [
|
||||||
|
"spinner"
|
||||||
|
"diagnostics"
|
||||||
|
"selections"
|
||||||
|
"primary-selection-length"
|
||||||
|
"register"
|
||||||
|
"position"
|
||||||
|
"file-encoding"
|
||||||
|
];
|
||||||
|
# separator = " ";
|
||||||
|
mode = {
|
||||||
|
normal = "NORMAL";
|
||||||
|
insert = "INSERT";
|
||||||
|
select = "SELECT";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
display-messages = false;
|
||||||
|
auto-signature-help = true;
|
||||||
|
display-inlay-hints = true;
|
||||||
|
};
|
||||||
cursor-shape = {
|
cursor-shape = {
|
||||||
normal = "block";
|
normal = "block";
|
||||||
insert = "bar";
|
insert = "bar";
|
||||||
select = "underline";
|
select = "underline";
|
||||||
};
|
};
|
||||||
soft-wrap = {
|
file-picker = {
|
||||||
enable = true;
|
hidden = false; # Enables ignoring hidden files
|
||||||
|
follow-symlinks = true; # Follow symlinks instead of ignoring them
|
||||||
|
deduplicate-links = true; # Ignore symlinks that point at files already shown in the picker
|
||||||
|
parents = true; # Enables reading ignore files from parent directories
|
||||||
|
ignore = true; # Enables reading .ignore files
|
||||||
|
git-ignore = true; # Enables reading .gitignore files
|
||||||
|
git-global = true; # Enables reading global .gitignore, whose path is specified in git's config: core.excludesfile option
|
||||||
|
git-exclude = true; # Enables reading .git/info/exclude files
|
||||||
|
# max-depth unset = ; # Set with an integer value for maximum depth to recurse
|
||||||
|
};
|
||||||
|
auto-pairs = {
|
||||||
|
"(" = ")";
|
||||||
|
"{" = "}";
|
||||||
|
"[" = "]";
|
||||||
|
"\"" = "\"";
|
||||||
|
"`" = "`";
|
||||||
|
"<" = ">";
|
||||||
|
# "/* " = " */";
|
||||||
|
};
|
||||||
|
auto-save = {
|
||||||
|
focus-lost = false;
|
||||||
|
after-delay = {
|
||||||
|
enable = false;
|
||||||
|
timeout = 3000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
search = {
|
||||||
|
smart-case = true;
|
||||||
|
wrap-around = true;
|
||||||
|
};
|
||||||
|
whitespace = {
|
||||||
|
render = {
|
||||||
|
skip-levels = "none";
|
||||||
|
space = "none";
|
||||||
|
nbsp = "none";
|
||||||
|
nnbsp = "none";
|
||||||
|
tab = "none";
|
||||||
|
newline = "none";
|
||||||
|
tabpad = "none";
|
||||||
|
};
|
||||||
|
characters = {
|
||||||
|
skip-levels = 1;
|
||||||
|
space = "·";
|
||||||
|
nbsp = "⍽";
|
||||||
|
nnbsp = "␣";
|
||||||
|
tab = "→";
|
||||||
|
newline = "⏎";
|
||||||
|
tabpad = "·";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
line-number = "relative";
|
|
||||||
color-modes = true;
|
|
||||||
bufferline = "always";
|
|
||||||
popup-border = "all";
|
|
||||||
completion-trigger-len = 1;
|
|
||||||
completion-timeout = 5;
|
|
||||||
file-picker.hidden = false;
|
|
||||||
middle-click-paste = false;
|
|
||||||
cursorline = true;
|
|
||||||
indent-guides = {
|
indent-guides = {
|
||||||
render = true;
|
render = true;
|
||||||
character = "╎";
|
character = "╎";
|
||||||
|
skip-levels = 0;
|
||||||
};
|
};
|
||||||
lsp.display-inlay-hints = true;
|
gutters = [
|
||||||
statusline.center = [ "position-percentage" ];
|
"diagnostics"
|
||||||
true-color = true;
|
"spacer"
|
||||||
whitespace.characters = {
|
"line-numbers"
|
||||||
newline = "↴";
|
"spacer"
|
||||||
tab = "⇥";
|
"diff"
|
||||||
skip-levels = 1;
|
];
|
||||||
|
# line-numbers = {};
|
||||||
|
# layout.minwidth = 3;
|
||||||
|
# diagnostics = {};
|
||||||
|
# diff = {};
|
||||||
|
# spacer = {};
|
||||||
|
soft-wrap = {
|
||||||
|
enable = true;
|
||||||
|
max-wrap = 20;
|
||||||
|
max-indent-retain = 40;
|
||||||
|
wrap-indicator = "↪";
|
||||||
|
wrap-at-text-width = false;
|
||||||
|
};
|
||||||
|
smart-tab = {
|
||||||
|
enable = false;
|
||||||
|
supersend-menu = false;
|
||||||
|
};
|
||||||
|
inline-diagnostics = {
|
||||||
|
cursor-line = "hint";
|
||||||
|
other-lines = "disable";
|
||||||
|
prefix-len = 1;
|
||||||
|
# max-wrap = set above
|
||||||
|
max-diagnostics = 20;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
keys.normal = {
|
keys = {
|
||||||
"C-g" = [ ":new" ":insert-output lazygit" ":buffer-close!" ":redraw" ];
|
normal = {
|
||||||
"A-`" = [ "no_op" ];
|
"C-g" = [ ":new" ":insert-output lazygit" ":buffer-close!" ":redraw" ];
|
||||||
"`" = [ "no_op" ];
|
"A-`" = [ "no_op" ];
|
||||||
};
|
"`" = [ "no_op" ];
|
||||||
keys.normal."ö" = {
|
"ö" = { "s" = [ "switch_case" ]; "u" = [ "switch_to_uppercase" ]; "l" = [ "switch_to_lowercase" ]; };
|
||||||
"s" = [ "switch_case" ];
|
};
|
||||||
"u" = [ "switch_to_uppercase" ];
|
select = {
|
||||||
"l" = [ "switch_to_lowercase" ];
|
"ö" = { "s" = [ "switch_case" ]; "u" = [ "switch_to_uppercase" ]; "l" = [ "switch_to_lowercase" ]; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
@@ -94,7 +225,6 @@
|
|||||||
file-types = [ "md" "MD" ];
|
file-types = [ "md" "MD" ];
|
||||||
scope = "text.<name>";
|
scope = "text.<name>";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "python";
|
name = "python";
|
||||||
language-servers = [ "pyright" "ruff" ];
|
language-servers = [ "pyright" "ruff" ];
|
||||||
@@ -173,7 +303,7 @@
|
|||||||
base16 = with rice.color; {
|
base16 = with rice.color; {
|
||||||
"attributes" = foreground;
|
"attributes" = foreground;
|
||||||
"comment" = {
|
"comment" = {
|
||||||
"fg" = white.dark;
|
"fg" = black.bright;
|
||||||
"modifiers" = [ "italic" ];
|
"modifiers" = [ "italic" ];
|
||||||
};
|
};
|
||||||
"constant" = accent.bright;
|
"constant" = accent.bright;
|
||||||
@@ -319,8 +449,8 @@
|
|||||||
"fg" = black.bright;
|
"fg" = black.bright;
|
||||||
};
|
};
|
||||||
"ui.virtual.inlay-hint" = {
|
"ui.virtual.inlay-hint" = {
|
||||||
"fg" = weird.bright;
|
"fg" = weird.dark;
|
||||||
"bg" = weird.dark;
|
"bg" = weird.base;
|
||||||
};
|
};
|
||||||
"ui.virtual.ruler" = {
|
"ui.virtual.ruler" = {
|
||||||
"bg" = background;
|
"bg" = background;
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
"VirtualBox Machine" = ""
|
"VirtualBox Machine" = ""
|
||||||
"VirtualBox Manager" = ""
|
"VirtualBox Manager" = ""
|
||||||
"VSCodium" = ""
|
"VSCodium" = ""
|
||||||
|
"Xsane" = ""
|
||||||
"zathura" = ""
|
"zathura" = ""
|
||||||
"zoom" = ""
|
"zoom" = ""
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ let
|
|||||||
main = {
|
main = {
|
||||||
name = "eDP-1";
|
name = "eDP-1";
|
||||||
resolution = "1920x1200";
|
resolution = "1920x1200";
|
||||||
position = "0x0";
|
position = "0x1080";
|
||||||
scale = "1.0";
|
scale = "1.0";
|
||||||
};
|
};
|
||||||
second = {
|
second = {
|
||||||
name = "DP-3";
|
name = "DP-2";
|
||||||
resolution = "1920x1080";
|
resolution = "1920x1080";
|
||||||
position = "1920x0";
|
position = "0x0";
|
||||||
scale = "1.0";
|
scale = "1.0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
51
home-modules/nxgs.nix
Normal file
51
home-modules/nxgs.nix
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ghostscript
|
||||||
|
(writeShellApplication rec {
|
||||||
|
name = "nxgs";
|
||||||
|
text = /* bash */ ''
|
||||||
|
print_help() {
|
||||||
|
echo "Usage: ${name} {flip <file(s)>|rotate <file(s)>|merge <Out File Name> <files>}"
|
||||||
|
}
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
print_help; exit 1;
|
||||||
|
fi
|
||||||
|
case "$1" in
|
||||||
|
flip)
|
||||||
|
for FILE in "''${@:2}"; do
|
||||||
|
NXGSTEMP=$(mktemp)
|
||||||
|
gs -o "$NXGSTEMP" -sDEVICE=pdfwrite -c "<</Orientation 2>> setpagedevice" -f "$FILE"
|
||||||
|
mv "$NXGSTEMP" "$FILE"
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
rotate)
|
||||||
|
for FILE in "''${@:2}"; do
|
||||||
|
NXGSTEMP=$(mktemp)
|
||||||
|
gs -o "$NXGSTEMP" -sDEVICE=pdfwrite -c "<</Orientation 1>> setpagedevice" -f "$FILE"
|
||||||
|
mv "$NXGSTEMP" "$FILE"
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
merge)
|
||||||
|
gs -dBATCH -dNOPAUSE -q -sOUTPUTFILE="$3" -sDEVICE=pdfwrite "''${@:3}"
|
||||||
|
;;
|
||||||
|
interactive-merge)
|
||||||
|
echo -n "Enter Name of the merged file without extension: "; read -r MERGED
|
||||||
|
NXGSTEMP=$(mktemp)
|
||||||
|
echo "''${@:2}" | tr " " "\n" > "$NXGSTEMP"
|
||||||
|
$EDITOR "$NXGSTEMP"
|
||||||
|
mapfile -t FILES < "$NXGSTEMP"
|
||||||
|
gs -dBATCH -dNOPAUSE -q -sOUTPUTFILE="''${MERGED}.pdf" -sDEVICE=pdfwrite "''${FILES[@]}"
|
||||||
|
rm "$NXGSTEMP"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Error: Unknown command '$1'"
|
||||||
|
print_help
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 0
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
6
home-modules/scanning.nix
Normal file
6
home-modules/scanning.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xsane
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lib, pkgs, user, rice, ... }: let
|
{ pkgs, rice, ... }: let
|
||||||
sep = " ";
|
sep = " ";
|
||||||
in {
|
in {
|
||||||
home.packages =
|
home.packages =
|
||||||
@@ -207,7 +207,7 @@ in {
|
|||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: rgb(${f background});
|
color: rgb(${f background});
|
||||||
background-color: rgba(${f accent.base},${builtins.toString rice.transparency});
|
background-color: rgb(${f accent.base});
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
|
{ pkgs, lib, system, rice, inputs, ... }:
|
||||||
{ pkgs, system, rice, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# yazi
|
# yazi
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
# initLua = /* lua */ '' '';
|
# initLua = /* lua */ '' '';
|
||||||
keymap = {
|
keymap = {
|
||||||
keymap = [
|
manager.keymap = [
|
||||||
{ on = "<Esc>"; run = "escape"; desc = "Exit visual mode, clear selected, or cancel search"; }
|
{ on = "<Esc>"; run = "escape"; desc = "Exit visual mode, clear selected, or cancel search"; }
|
||||||
{ on = "q"; run = "quit"; desc = "Exit the process"; }
|
{ on = "q"; run = "quit"; desc = "Exit the process"; }
|
||||||
{ on = "Q"; run = "quit --no-cwd-file"; desc = "Exit the process without writing cwd-file"; }
|
{ on = "Q"; run = "quit --no-cwd-file"; desc = "Exit the process without writing cwd-file"; }
|
||||||
@@ -61,11 +60,12 @@
|
|||||||
{ on = "K"; run = "seek -5"; desc = "Seek up 5 units in the preview"; }
|
{ on = "K"; run = "seek -5"; desc = "Seek up 5 units in the preview"; }
|
||||||
{ on = "J"; run = "seek 5"; desc = "Seek down 5 units in the preview"; }
|
{ on = "J"; run = "seek 5"; desc = "Seek down 5 units in the preview"; }
|
||||||
# Selection
|
# Selection
|
||||||
{ on = "<Space>"; run = [ "select --state=none" "arrow 1" ]; desc = "Toggle the current selection state"; }
|
{ on = "<Space>"; run = [ "toggle --state=none" "arrow 1" ]; desc = "Toggle the current selection state"; }
|
||||||
{ on = "v"; run = "visual_mode"; desc = "Enter visual mode (selection mode)"; }
|
{ on = "v"; run = "visual_mode"; desc = "Enter visual mode (selection mode)"; }
|
||||||
{ on = "V"; run = "visual_mode --unset"; desc = "Enter visual mode (unset mode)"; }
|
{ on = "V"; run = "visual_mode --unset"; desc = "Enter visual mode (unset mode)"; }
|
||||||
{ on = "<C-a>"; run = "select_all --state=true"; desc = "Select all files"; }
|
{ on = "<C-a>"; run = "toggle_all --state=on"; desc = "Select all files"; }
|
||||||
{ on = "<C-r>"; run = "select_all --state=none"; desc = "Inverse selection of all files"; }
|
{ on = "<C-n>"; run = "toggle_all --state=off"; desc = "Deselect all files"; }
|
||||||
|
{ on = "<C-r>"; run = "toggle_all --state=none"; desc = "Inverse selection of all files"; }
|
||||||
# Operation
|
# Operation
|
||||||
{ on = "o"; run = "open"; desc = "Open selected files"; }
|
{ on = "o"; run = "open"; desc = "Open selected files"; }
|
||||||
{ on = "O"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
{ on = "O"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
||||||
@@ -126,6 +126,7 @@
|
|||||||
{ on = [ "," "S" ]; run = [ "sort size --reverse" "linemode size" ]; desc = "Sort by size (reverse)"; }
|
{ on = [ "," "S" ]; run = [ "sort size --reverse" "linemode size" ]; desc = "Sort by size (reverse)"; }
|
||||||
# Tab
|
# Tab
|
||||||
{ on = "t"; run = "tab_create --current"; desc = "Create a new tab with CWD"; }
|
{ on = "t"; run = "tab_create --current"; desc = "Create a new tab with CWD"; }
|
||||||
|
{ on = "<C-w>"; run = "close"; desc = "Close the current tab"; }
|
||||||
{ on = "1"; run = "tab_switch 0"; desc = "Switch to the first tab"; }
|
{ on = "1"; run = "tab_switch 0"; desc = "Switch to the first tab"; }
|
||||||
{ on = "2"; run = "tab_switch 1"; desc = "Switch to the second tab"; }
|
{ on = "2"; run = "tab_switch 1"; desc = "Switch to the second tab"; }
|
||||||
{ on = "3"; run = "tab_switch 2"; desc = "Switch to the third tab"; }
|
{ on = "3"; run = "tab_switch 2"; desc = "Switch to the third tab"; }
|
||||||
@@ -135,14 +136,46 @@
|
|||||||
{ on = "7"; run = "tab_switch 6"; desc = "Switch to the seventh tab"; }
|
{ on = "7"; run = "tab_switch 6"; desc = "Switch to the seventh tab"; }
|
||||||
{ on = "8"; run = "tab_switch 7"; desc = "Switch to the eighth tab"; }
|
{ on = "8"; run = "tab_switch 7"; desc = "Switch to the eighth tab"; }
|
||||||
{ on = "9"; run = "tab_switch 8"; desc = "Switch to the ninth tab"; }
|
{ on = "9"; run = "tab_switch 8"; desc = "Switch to the ninth tab"; }
|
||||||
|
{ on = "<C-1>"; run = "tab_swap 0"; desc = "Swap current tab with the first tab"; }
|
||||||
|
{ on = "<C-2>"; run = "tab_swap 1"; desc = "Swap current tab with the second tab"; }
|
||||||
|
{ on = "<C-3>"; run = "tab_swap 2"; desc = "Swap current tab with the third tab"; }
|
||||||
|
{ on = "<C-4>"; run = "tab_swap 3"; desc = "Swap current tab with the fourth tab"; }
|
||||||
|
{ on = "<C-5>"; run = "tab_swap 4"; desc = "Swap current tab with the fifth tab"; }
|
||||||
|
{ on = "<C-5>"; run = "tab_swap 4"; desc = "Swap current tab with "; }
|
||||||
|
{ on = "<C-6>"; run = "tab_swap 5"; desc = "Swap current tab with the sixth tab"; }
|
||||||
|
{ on = "<C-6>"; run = "tab_swap 5"; desc = "Swap current tab with "; }
|
||||||
|
{ on = "<C-7>"; run = "tab_swap 6"; desc = "Swap current tab with the seventh tab"; }
|
||||||
|
{ on = "<C-7>"; run = "tab_swap 6"; desc = "Swap current tab with tab"; }
|
||||||
|
{ on = "<C-8>"; run = "tab_swap 7"; desc = "Swap current tab with the eighth tab"; }
|
||||||
|
{ on = "<C-8>"; run = "tab_swap 7"; desc = "Swap current tab with b"; }
|
||||||
|
{ on = "<C-9>"; run = "tab_swap 8"; desc = "Swap current tab with the ninth tab"; }
|
||||||
|
{ on = "<C-9>"; run = "tab_swap 8"; desc = "Swap current tab with "; }
|
||||||
{ on = "["; run = "tab_switch -1 --relative"; desc = "Switch to the previous tab"; }
|
{ on = "["; run = "tab_switch -1 --relative"; desc = "Switch to the previous tab"; }
|
||||||
|
{ on = "["; run = "tab_switch -1 --relative"; desc = "Switch to thtab"; }
|
||||||
{ on = "]"; run = "tab_switch 1 --relative"; desc = "Switch to the next tab"; }
|
{ on = "]"; run = "tab_switch 1 --relative"; desc = "Switch to the next tab"; }
|
||||||
|
{ on = "]"; run = "tab_switch 1 --relative"; desc = "Switch ttab"; }
|
||||||
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab with previous tab"; }
|
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab with previous tab"; }
|
||||||
|
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab wittab"; }
|
||||||
{ on = "}"; run = "tab_swap 1"; desc = "Swap current tab with next tab"; }
|
{ on = "}"; run = "tab_swap 1"; desc = "Swap current tab with next tab"; }
|
||||||
# Task
|
# Tasks
|
||||||
{ on = "w"; run = "tasks_show"; desc = "Show task manager"; }
|
{ on = "w"; run = "tasks_show"; desc = "Show task manager"; }
|
||||||
# Hel
|
];
|
||||||
|
tasks.keymap = [
|
||||||
|
# Task
|
||||||
|
{ on = "w"; run = "close"; desc = "Close Task View"; }
|
||||||
|
{ on = "q"; run = "close"; desc = "Close Task View"; }
|
||||||
|
{ on = "<Esc>"; run = "close"; desc = "Close Task View"; }
|
||||||
|
{ on = "c"; run = "cancel"; desc = "Cancel Task"; }
|
||||||
|
{ on = "i"; run = "inspect"; desc = "Inspect Task"; }
|
||||||
|
{ on = "j"; run = "arrow -1"; desc = "Up in list"; }
|
||||||
|
{ on = "k"; run = "arrow 1"; desc = "Down in list"; }
|
||||||
|
{ on = "u"; run = "arrow -5"; desc = "Up in list (fast)"; }
|
||||||
|
{ on = "d"; run = "arrow 5"; desc = "Down in list (fast)"; }
|
||||||
|
];
|
||||||
|
help = [
|
||||||
|
# Help
|
||||||
{ on = "~"; run = "help"; desc = "Open help"; }
|
{ on = "~"; run = "help"; desc = "Open help"; }
|
||||||
|
{ on = "?"; run = "help"; desc = "Open help"; }
|
||||||
{ on = "<F1>"; run = "help"; desc = "Open help"; }
|
{ on = "<F1>"; run = "help"; desc = "Open help"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -175,10 +208,12 @@
|
|||||||
{ run = ''imv "$@"''; desc = "imv"; }
|
{ run = ''imv "$@"''; desc = "imv"; }
|
||||||
{ run = ''gimp "$@"''; desc = "gimp"; }
|
{ run = ''gimp "$@"''; desc = "gimp"; }
|
||||||
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$@"''; desc = "swww wallpaper"; }
|
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$@"''; desc = "swww wallpaper"; }
|
||||||
|
{ run = ''exiftool "$@"; echo "Press enter to exit"; read''; desc = "View Exif Data"; }
|
||||||
|
{ run = ''for f in "$@"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; }
|
||||||
];
|
];
|
||||||
"svg" = [
|
"svg" = [
|
||||||
{ run = ''inkscape "$@"''; desc = "inkscape";}
|
{ run = ''inkscape "$@"''; desc = "inkscape";}
|
||||||
{ run = ''firefoc "$@"''; desc = "firefox";}
|
{ run = ''firefox "$@"''; desc = "firefox";}
|
||||||
];
|
];
|
||||||
"font" = [
|
"font" = [
|
||||||
{ run = ''fontpreview "$@"''; desc = "fontpreview"; }
|
{ run = ''fontpreview "$@"''; desc = "fontpreview"; }
|
||||||
@@ -188,6 +223,9 @@
|
|||||||
{ run = ''zathura "$@"''; desc = "zathura"; orphan = true; }
|
{ run = ''zathura "$@"''; desc = "zathura"; orphan = true; }
|
||||||
{ run = ''xournal "$@"''; desc = "xournal"; orphan = true; }
|
{ run = ''xournal "$@"''; desc = "xournal"; orphan = true; }
|
||||||
{ run = ''firefox "$@"''; desc = "firefox"; }
|
{ run = ''firefox "$@"''; desc = "firefox"; }
|
||||||
|
{ run = ''nxgs flip "$@"''; desc = "nxgs flip"; }
|
||||||
|
{ run = ''nxgs rotate "$@"''; desc = "nxgs rotate"; }
|
||||||
|
{ run = ''nxgs interactive-merge "$@"''; block = true; desc = "nxgs merge"; }
|
||||||
];
|
];
|
||||||
"browser" = [
|
"browser" = [
|
||||||
{ run = ''firefox "$@"''; desc = "firefox"; }
|
{ run = ''firefox "$@"''; desc = "firefox"; }
|
||||||
@@ -203,7 +241,7 @@
|
|||||||
"shell" = [
|
"shell" = [
|
||||||
{ run = ''bash -c "$@"''; desc = "bash -c"; }
|
{ run = ''bash -c "$@"''; desc = "bash -c"; }
|
||||||
{ run = ''fish -c "$@"''; desc = "fish -c"; }
|
{ run = ''fish -c "$@"''; desc = "fish -c"; }
|
||||||
{ run = ''sh -c "$@"''; desc = "sh -c"; }
|
{ run = ''sh -c "$@"''; desc = "sh -c"; }
|
||||||
];
|
];
|
||||||
"python" = [
|
"python" = [
|
||||||
{ run = ''python "$@"''; desc = "python"; }
|
{ run = ''python "$@"''; desc = "python"; }
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ rice, ... }:
|
||||||
{
|
{
|
||||||
programs.zathura = {
|
programs.zathura = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = with rice.color; {
|
options = let
|
||||||
|
f = rice.lib.hex-to-rgb-comma-string;
|
||||||
|
t = builtins.toString rice.transparency;
|
||||||
|
in with rice.color; {
|
||||||
completion-bg = background;
|
completion-bg = background;
|
||||||
completion-fg = foreground;
|
completion-fg = foreground;
|
||||||
completion-highlight-bg = background;
|
completion-highlight-bg = background;
|
||||||
completion-highlight-fg = accent.base;
|
completion-highlight-fg = accent.base;
|
||||||
default-bg = "rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency})";
|
default-bg = "rgba(${f background},${t})";
|
||||||
default-fg = foreground;
|
default-fg = foreground;
|
||||||
highlight-active-color = "rgba(${rice.lib.hex-to-rgb-comma-string accent.base},0.5)";
|
highlight-active-color = "rgba(${f accent.base},0.5)";
|
||||||
highlight-color = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)";
|
highlight-color = "rgba(${f secondary.base},0.5)";
|
||||||
highlight-fg = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)";
|
highlight-fg = "rgba(${f secondary.base},0.5)";
|
||||||
index-fg = accent.bright;
|
index-fg = accent.bright;
|
||||||
index-bg = black.dark;
|
index-bg = black.dark;
|
||||||
index-active-fg = background;
|
index-active-fg = background;
|
||||||
@@ -40,7 +43,7 @@
|
|||||||
scroll-page-aware = true;
|
scroll-page-aware = true;
|
||||||
smooth-scroll = true;
|
smooth-scroll = true;
|
||||||
scroll-full-overlap = 0.01;
|
scroll-full-overlap = 0.01;
|
||||||
scroll-step = 300;
|
scroll-step = 100;
|
||||||
};
|
};
|
||||||
mappings = {
|
mappings = {
|
||||||
h = ''feedkeys "<C-Left>"'';
|
h = ''feedkeys "<C-Left>"'';
|
||||||
|
|||||||
5
home.nix
5
home.nix
@@ -32,6 +32,7 @@
|
|||||||
./home-modules/nixd.nix
|
./home-modules/nixd.nix
|
||||||
./home-modules/nvidia.nix
|
./home-modules/nvidia.nix
|
||||||
./home-modules/nx2site.nix
|
./home-modules/nx2site.nix
|
||||||
|
./home-modules/nxgs.nix
|
||||||
# ./home-modules/nx-gcal-event.nix
|
# ./home-modules/nx-gcal-event.nix
|
||||||
./home-modules/obs.nix
|
./home-modules/obs.nix
|
||||||
./home-modules/office.nix
|
./home-modules/office.nix
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
./home-modules/programming/python.nix
|
./home-modules/programming/python.nix
|
||||||
./home-modules/qt.nix
|
./home-modules/qt.nix
|
||||||
./home-modules/rofi.nix
|
./home-modules/rofi.nix
|
||||||
|
./home-modules/scanning.nix
|
||||||
./home-modules/sent.nix
|
./home-modules/sent.nix
|
||||||
./home-modules/sops.nix
|
./home-modules/sops.nix
|
||||||
./home-modules/ssh.nix
|
./home-modules/ssh.nix
|
||||||
@@ -91,6 +93,9 @@
|
|||||||
cmake
|
cmake
|
||||||
|
|
||||||
speedtest-go
|
speedtest-go
|
||||||
|
imagemagick
|
||||||
|
|
||||||
|
qbittorrent
|
||||||
|
|
||||||
glib
|
glib
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{ host, lib, ... }:
|
{ pkgs, host, lib, ... }:
|
||||||
lib.mkIf (host != "NxACE")
|
lib.mkIf (host != "NxACE")
|
||||||
{
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
adbfs-rootless
|
||||||
|
];
|
||||||
programs.adb = {
|
programs.adb = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -190,7 +190,6 @@ let paperless-user = "paperless"; in
|
|||||||
# PAPERLESS_EMAIL_HOST_PASSWORD = "".
|
# PAPERLESS_EMAIL_HOST_PASSWORD = "".
|
||||||
# PAPERLESS_EMAIL_USE_TLS = false.
|
# PAPERLESS_EMAIL_USE_TLS = false.
|
||||||
# PAPERLESS_EMAIL_USE_SSL = false.
|
# PAPERLESS_EMAIL_USE_SSL = false.
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
10
system-modules/scanning.nix
Normal file
10
system-modules/scanning.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
"wheel"
|
"wheel"
|
||||||
"audio"
|
"audio"
|
||||||
"video"
|
"video"
|
||||||
|
"lp"
|
||||||
|
"scanner"
|
||||||
"docker"
|
"docker"
|
||||||
"libvirtd"
|
"libvirtd"
|
||||||
"uinput"
|
"uinput"
|
||||||
|
|||||||
Reference in New Issue
Block a user