Compare commits

..

No commits in common. "f794822a36ee4210439679c4a28278750734d687" and "651dfa31ccc715c9e1b0bb19417e54f3d975ee4b" have entirely different histories.

14 changed files with 1 additions and 89 deletions

View file

@ -37,5 +37,4 @@
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
'';
};
u.has.jp = true;
}

View file

@ -10,11 +10,6 @@
buildInputs = old.buildInputs ++ [pkgs.xorg.libXcursor];
env.NIX_LDFLAGS = "-lXcursor";
});
ki = super.ki.overrideAttrs (old: {
postInstall = ''
patch $out/bin/ki < ${./ki.diff}
'';
});
})
];
}

View file

@ -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())

View file

@ -48,7 +48,6 @@ alias gs='git status'
alias ga='git add'
alias gap='git add -p'
alias gr='git reset'
alias lg='lazygit'
# pacman aliases
if _exists pacman; then

View file

@ -9,7 +9,6 @@ in {
imports = [
./kde
./tmux
./mpv
./nvim
./starship
];
@ -29,7 +28,6 @@ in {
source ~/.config/gdb/gdbinit.py
'';
xdg.configFile.git.source = ./git;
xdg.configFile.lazygit.source = ./lazygit;
xdg.configFile.lsd.source = ./lsd;
xdg.configFile.picom.source = ./picom;
xdg.configFile.pwninit.source = ./pwninit;

View file

@ -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>

View file

@ -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";
}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -65,7 +65,6 @@
wine = mkOpt "wine";
prog = mkOpt "prog";
activitywatch = mkOptF "activitywatch";
jp = mkOptF "jp";
};
lib = lib.mkOption {
type = lib.types.attrs;

View file

@ -32,6 +32,7 @@
++ lib.optionals config.u.has.graphical [
(config.u.lib.localHome pkgs.firefox-bin "firefox" "bin/firefox")
alacritty
mpv
nsxiv
rofi
sct
@ -58,10 +59,5 @@
++ lib.optionals config.u.has.wine [
wine
winetricks
]
++ lib.optionals config.u.has.jp [
anki
ki
python312Packages.manga-ocr
];
}

View file

@ -23,7 +23,6 @@ lib.mkIf config.u.has.prog {
pwndbg
pwninit
patchelf
lazygit
]
++ lib.optionals config.u.has.graphical [
(cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))

View file

@ -23,7 +23,6 @@ lib.mkIf config.u.has.graphical {
"video/mp4" = media;
"video/mpeg" = media;
"video/x-matroska" = media;
"text/plain" = text;
"application/xml" = text;