refactor: nixify / clean dots config

This commit is contained in:
hektor committed 2026-11-06 21:00:20 +01:00
1 parent c2bb81ec7c
commit 9030f33842
35 files changed
+83 -4366

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
./firefox.nix
./librewolf.nix
./chromium.nix
./tridactyl.nix
];
options.browser = {
+17
View File
@@ -0,0 +1,17 @@
{
config,
lib,
...
}:
let
browsers = [
config.browser.primary
config.browser.secondary
];
in
{
config = lib.mkIf (lib.elem "firefox" browsers || lib.elem "librewolf" browsers) {
xdg.configFile."tridactyl/tridactylrc".source = ./tridactylrc;
};
}
+22
View File
@@ -0,0 +1,22 @@
set searchengine d
set newtab about:blank
set smoothscroll true
# Yank bindings
bind ym clipboard yankmd
bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
# Search bindings
unbind <C-f>
bind / fillcmdline find
bind ? fillcmdline find -?
bind n findnext 1
bind N findnext -1
bind j scrollline 4
bind k scrollline -4
# Containerize facebook (source: https://github.com/tridactyl/tridactyl/blob/master/.tridactylrc)
set auconcreatecontainer true
autocontain facebook\.com facebook
+21 -1
View File
@@ -6,6 +6,26 @@
{
config = lib.mkIf (config.git.enable && config.git.github.enable) {
programs.gh.enable = true;
programs.gh = {
enable = true;
settings = {
git_protocol = "ssh";
prompt = "enabled";
aliases = {
co = "pr checkout";
c = "repo clone";
f = "repo fork";
rc = "repo create";
rv = "repo view";
re = "repo edit";
rm = "repo remove";
rn = "repo rename";
lr = "repo list";
li = "issue list";
al = "alias";
al- = "alias delete";
};
};
};
};
}
+38
View File
@@ -0,0 +1,38 @@
{ config, lib, ... }:
{
options.mpv.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.mpv.enable {
programs.mpv = {
enable = true;
config = {
vo = "gpu";
profile = "gpu-hq";
hwdec = "auto";
msg-color = "yes";
cursor-autohide = 300;
cursor-autohide-fs-only = "yes";
save-position-on-quit = "yes";
keep-open = "yes";
};
bindings = {
l = "seek +5";
h = "seek -5";
k = "seek +30";
j = "seek -30";
"+" = "add video-zoom 0.1";
"-" = "add video-zoom -0.1";
"=" = "set video-zoom 0; set video-pan-x 0; set video-pan-y 0";
H = "add video-pan-x 0.01";
L = "add video-pan-x -0.01";
K = "add video-pan-y 0.01";
J = "add video-pan-y -0.01";
m = "cycle mute";
};
};
};
}
+4
View File
@@ -23,6 +23,10 @@ in
config = lib.mkIf cfg.enable {
home.packages = [ spotifyWithWayland ];
home.activation.spotifyCacheSize = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
run mkdir -p ${config.xdg.configHome}/spotify
run ${lib.getExe pkgs.crudini} --ini-options=nospace --set ${config.xdg.configHome}/spotify/prefs "" storage.size 1024
'';
programs.ncspot = {
enable = true;
settings = {