This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
programs.mpv.enable = true; | |
programs.mpv.bindings.j = "seek -5"; | |
programs.mpv.bindings.l = "seek 5"; | |
programs.mpv.bindings.k = "cycle pause"; | |
programs.mpv.bindings.UP = "add volume 5"; | |
programs.mpv.bindings.DOWN = "add volume -5"; | |
programs.mpv.bindings.">" = "multiply speed 1.1"; | |
programs.mpv.bindings."<" = "multiply speed 1/1.1"; | |
programs.mpv.bindings.c = "cycle sub"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lsp_langs = { "ts_ls", "biome", "nixd" } | |
local direnv_lspstart_group = vim.api.nvim_create_augroup("StartLspAfterDirenv", { clear = true }) | |
vim.api.nvim_create_autocmd("BufEnter", { | |
group = vim.api.nvim_create_augroup("StartLsp", { clear = true }), | |
pattern = "*", | |
callback = function() | |
local result = vim.system( | |
{ "git", "-C", vim.fn.expand("%:p:h"), "rev-parse", "--show-toplevel" }, | |
{ text = true } | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
programs.qutebrowser.settings.colors.completion.fg = "#ddc7a1"; | |
programs.qutebrowser.settings.colors.completion.odd.bg = "#282828"; | |
programs.qutebrowser.settings.colors.completion.even.bg = "#1d2021"; | |
programs.qutebrowser.settings.colors.completion.category.fg = "#e78a4e"; | |
programs.qutebrowser.settings.colors.completion.category.bg = "#1d2021"; | |
programs.qutebrowser.settings.colors.completion.category.border.top = "#1d2021"; | |
programs.qutebrowser.settings.colors.completion.category.border.bottom = "#1d2021"; | |
programs.qutebrowser.settings.colors.completion.item.selected.fg = "#ddc7a1"; | |
programs.qutebrowser.settings.colors.completion.item.selected.bg = "#32361a"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
services.immich.enable = true; | |
services.immich.host = "0.0.0.0"; | |
services.immich.openFirewall = true; | |
services.immich.mediaLocation = "/pool1/data1/immich/media"; | |
services.immich.machine-learning.enable = false; | |
services.immich.settings.machineLearning.urls = [ "http://10.244.202.182:3003" ]; | |
services.immich.redis.host = "0.0.0.0"; | |
services.immich.redis.port = 6379; | |
services.immich.database.host = "0.0.0.0"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg \ | |
-f x11grab \ | |
-video_size 1920x1080 \ | |
-i :0 \ | |
"$XDG_DOWNLOAD_DIR/$(date -u +%Y-%m-%dT%H:%M:%S%Z).mp4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ... }: | |
let | |
desktopName = "unar"; | |
mimeType = [ | |
"application/vnd.rar" | |
"application/zip" | |
"application/x-tar" | |
"application/gzip" | |
"application/x-bzip2" | |
"application/x-compressed-tar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
let | |
openUrl = pkgs.writeShellScript "open_url" '' | |
chrome_urls=( | |
"https://youtube.com/" | |
"https://www.youtube.com/" | |
"https://youtu.be/" | |
"https://dash.cloudflare.com/" | |
"https://www.reddit.com/" | |
"https://reddit.com/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
services.sxhkd.enable = true; | |
services.sxhkd.keybindings = { | |
"super + i" = "sh -c 'if [ $(ibus engine) == \"xkb:us::eng\" ]; then ibus engine mozc-jp; else ibus engine xkb:us::eng; fi'"; | |
"super + Print" = "flameshot gui"; | |
"XF86AudioMute" = "${pkgs.alsa-utils}/bin/amixer sset Master toggle"; | |
"XF86AudioRaiseVolume" = "${pkgs.alsa-utils}/bin/amixer sset Master 4%+"; | |
"XF86AudioLowerVolume" = "${pkgs.alsa-utils}/bin/amixer sset Master 4%-"; | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# uncomment this to enable virtual camera | |
# https://github.com/NixOS/nixpkgs/issues/251655#issuecomment-1696519655 | |
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; | |
boot.kernelModules = [ | |
"v4l2loopback" | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
networking.dhcpcd.extraConfig = "nohook resolv.conf"; | |
networking.networkmanager.dns = "none"; | |
networking.nameservers = [ "127.0.0.1" ]; | |
services.dnscrypt-proxy2.enable = true; | |
services.dnscrypt-proxy2.settings = { | |
ipv6_servers = true; | |
ipv4_servers = true; |
NewerOlder