Compare commits
No commits in common. "f794822a36ee4210439679c4a28278750734d687" and "651dfa31ccc715c9e1b0bb19417e54f3d975ee4b" have entirely different histories.
f794822a36
...
651dfa31cc
|
|
@ -37,5 +37,4 @@
|
||||||
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
|
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
u.has.jp = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,6 @@
|
||||||
buildInputs = old.buildInputs ++ [pkgs.xorg.libXcursor];
|
buildInputs = old.buildInputs ++ [pkgs.xorg.libXcursor];
|
||||||
env.NIX_LDFLAGS = "-lXcursor";
|
env.NIX_LDFLAGS = "-lXcursor";
|
||||||
});
|
});
|
||||||
ki = super.ki.overrideAttrs (old: {
|
|
||||||
postInstall = ''
|
|
||||||
patch $out/bin/ki < ${./ki.diff}
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/bin/ki
|
|
||||||
+++ b/bin/ki
|
|
||||||
@@ -1,6 +1,8 @@
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from ki import ki
|
|
||||||
+import ki.maybes as M; M.empty_kirepo = lambda root: (M.F.mksubdir(root, M.Path(M.KI)), M.F.mksubdir(M.EmptyDir(root), M.Path(M.MEDIA)))
|
|
||||||
+import pathlib as P; PTD = P.Path.__truediv__; P.Path.__truediv__ = lambda a, b: P.Path('/dev/null') if '.gitattributes' in str(PTD(a, b)) else PTD(a, b)
|
|
||||||
if __name__ == "__main__":
|
|
||||||
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
|
|
||||||
sys.exit(ki())
|
|
||||||
|
|
@ -48,7 +48,6 @@ alias gs='git status'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gap='git add -p'
|
alias gap='git add -p'
|
||||||
alias gr='git reset'
|
alias gr='git reset'
|
||||||
alias lg='lazygit'
|
|
||||||
|
|
||||||
# pacman aliases
|
# pacman aliases
|
||||||
if _exists pacman; then
|
if _exists pacman; then
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
./kde
|
./kde
|
||||||
./tmux
|
./tmux
|
||||||
./mpv
|
|
||||||
./nvim
|
./nvim
|
||||||
./starship
|
./starship
|
||||||
];
|
];
|
||||||
|
|
@ -29,7 +28,6 @@ in {
|
||||||
source ~/.config/gdb/gdbinit.py
|
source ~/.config/gdb/gdbinit.py
|
||||||
'';
|
'';
|
||||||
xdg.configFile.git.source = ./git;
|
xdg.configFile.git.source = ./git;
|
||||||
xdg.configFile.lazygit.source = ./lazygit;
|
|
||||||
xdg.configFile.lsd.source = ./lsd;
|
xdg.configFile.lsd.source = ./lsd;
|
||||||
xdg.configFile.picom.source = ./picom;
|
xdg.configFile.picom.source = ./picom;
|
||||||
xdg.configFile.pwninit.source = ./pwninit;
|
xdg.configFile.pwninit.source = ./pwninit;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
quitOnTopLevelReturn: true
|
|
||||||
update:
|
|
||||||
method: never
|
|
||||||
promptToReturnFromSubprocess: false
|
|
||||||
os:
|
|
||||||
edit: "nvim {{filename}}"
|
|
||||||
editAtLine: "nvim {{filename}} +{{line}}"
|
|
||||||
open: "nvim {{filename}}"
|
|
||||||
keybinding:
|
|
||||||
universal:
|
|
||||||
quit: <disabled>
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
lib.mkIf config.u.has.graphical {
|
|
||||||
programs.mpv = {
|
|
||||||
enable = true;
|
|
||||||
scripts = lib.optionals config.u.has.jp [pkgs.mpvScripts.mpvacious];
|
|
||||||
};
|
|
||||||
xdg.configFile."mpv/input.conf".source = config.u.lib.lnn "user/config/mpv/input.conf";
|
|
||||||
xdg.configFile."mpv/mpv.conf".source = config.u.lib.lnn "user/config/mpv/mpv.conf";
|
|
||||||
xdg.configFile."mpv/script-opts".source = config.u.lib.lnn "user/config/mpv/script-opts";
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
h seek -10
|
|
||||||
j seek -3 exact
|
|
||||||
k seek 3 exact
|
|
||||||
l seek 10
|
|
||||||
|
|
||||||
a no-osd sub-seek -1
|
|
||||||
s set sub-delay 0
|
|
||||||
d no-osd sub-seek 1
|
|
||||||
|
|
||||||
Z add sub-delay +0.05
|
|
||||||
z add sub-delay -0.05
|
|
||||||
X sub-step 1
|
|
||||||
x sub-step -1
|
|
||||||
|
|
||||||
mbtn_left cycle pause
|
|
||||||
wheel_up seek 1
|
|
||||||
wheel_down seek -1
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
alang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
|
||||||
slang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
|
||||||
save-position-on-quit=yes
|
|
||||||
sub-auto=fuzzy
|
|
||||||
sub-file-paths=ass:srt:sub:subs:subtitles
|
|
||||||
sub-font="Noto Sans CJK JP Regular"
|
|
||||||
sub-font-size=40
|
|
||||||
af-add=scaletempo2
|
|
||||||
no-keepaspect-window
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
deck_name=mining
|
|
||||||
model_name=jp
|
|
||||||
|
|
||||||
sentence_field=sent
|
|
||||||
secondary_field=eng
|
|
||||||
audio_field=sent_a
|
|
||||||
image_field=img
|
|
||||||
|
|
||||||
autoclip=yes
|
|
||||||
|
|
@ -65,7 +65,6 @@
|
||||||
wine = mkOpt "wine";
|
wine = mkOpt "wine";
|
||||||
prog = mkOpt "prog";
|
prog = mkOpt "prog";
|
||||||
activitywatch = mkOptF "activitywatch";
|
activitywatch = mkOptF "activitywatch";
|
||||||
jp = mkOptF "jp";
|
|
||||||
};
|
};
|
||||||
lib = lib.mkOption {
|
lib = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
++ lib.optionals config.u.has.graphical [
|
++ lib.optionals config.u.has.graphical [
|
||||||
(config.u.lib.localHome pkgs.firefox-bin "firefox" "bin/firefox")
|
(config.u.lib.localHome pkgs.firefox-bin "firefox" "bin/firefox")
|
||||||
alacritty
|
alacritty
|
||||||
|
mpv
|
||||||
nsxiv
|
nsxiv
|
||||||
rofi
|
rofi
|
||||||
sct
|
sct
|
||||||
|
|
@ -58,10 +59,5 @@
|
||||||
++ lib.optionals config.u.has.wine [
|
++ lib.optionals config.u.has.wine [
|
||||||
wine
|
wine
|
||||||
winetricks
|
winetricks
|
||||||
]
|
|
||||||
++ lib.optionals config.u.has.jp [
|
|
||||||
anki
|
|
||||||
ki
|
|
||||||
python312Packages.manga-ocr
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ lib.mkIf config.u.has.prog {
|
||||||
pwndbg
|
pwndbg
|
||||||
pwninit
|
pwninit
|
||||||
patchelf
|
patchelf
|
||||||
lazygit
|
|
||||||
]
|
]
|
||||||
++ lib.optionals config.u.has.graphical [
|
++ lib.optionals config.u.has.graphical [
|
||||||
(cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))
|
(cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ lib.mkIf config.u.has.graphical {
|
||||||
|
|
||||||
"video/mp4" = media;
|
"video/mp4" = media;
|
||||||
"video/mpeg" = media;
|
"video/mpeg" = media;
|
||||||
"video/x-matroska" = media;
|
|
||||||
|
|
||||||
"text/plain" = text;
|
"text/plain" = text;
|
||||||
"application/xml" = text;
|
"application/xml" = text;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue