{ config, pkgs, inputs, lib, ... }: { imports = [ ./nvim ]; options.custom.xmobarBattery = lib.mkEnableOption "xmobar battery widget"; options.custom.xmobarVpn = lib.mkEnableOption "xmobar VPN indicator"; config = { home.stateVersion = "25.11"; home.packages = with pkgs; [ (dmenu.override { conf = ./dmenu/config.h; }) ripgrep fd git wget xclip maim hexyl calibre pavucontrol pamixer ]; programs.alacritty = { enable = true; settings = { font.size = 8; selection.save_to_clipboard = true; mouse.bindings = [ { mouse = "Right"; action = "Paste"; } ]; }; }; programs.bash.enable = true; programs.fish = { enable = true; interactiveShellInit = "set -g fish_greeting"; }; programs.zoxide = { enable = true; enableFishIntegration = true; }; programs.ssh = { enable = true; enableDefaultConfig = false; matchBlocks = { "myserver" = { hostname = "192.168.0.111"; }; }; }; programs.git = { enable = true; settings.user.name = "Christian"; settings.user.email = "thechristiansoltermann@gmail.com"; settings.init.defaultBranch = "main"; }; programs.direnv = { enable = true; enableBashIntegration = true; nix-direnv.enable = true; silent = true; }; programs.firefox = { enable = true; policies = { OverrideFirstRunPage = ""; DisableFirefoxAccounts = true; FirefoxHome = { SponsoredTopSites = false; Stories = false; }; }; profiles.christian = { name = "Christian"; isDefault = true; settings = { "browser.aboutConfig.showWarning" = false; "extensions.autoDisableScopes" = 0; "browser.theme.content-theme" = 0; "browser.theme.toolbar-theme" = 0; }; extensions.packages = with inputs.nur.legacyPackages.x86_64-linux.repos.rycee.firefox-addons; [ ublock-origin ]; }; }; programs.xmobar = { enable = true; extraConfig = '' -- vim: set ft=haskell: Config { font = "Monospace" , borderColor = "#d0d0d0" , border = FullB , borderWidth = 1 , bgColor = "#222" , fgColor = "grey" , position = TopH 30 , commands = [ Run XMonadLog , Run Cpu ["-t", "cpu: %"] 10 , Run Network "wlan0" ["-S", "True", "-t", "wlan: /"] 10 , Run Memory ["-t","mem: %"] 10 , Run Volume "default" "Master" ["-t", "vol: %"] 10 , Run Date "date: %a %d %b %Y %I:%M:%S %p " "date" 10 ${lib.optionalString config.custom.xmobarBattery '' , Run Battery ["-t", "bat: ", "-L", "10", "-H", "80", "-S", "True", "-l", "red", "-n", "#4eb4fa", "-h", "green", "--", "-L", "-15", "-H", "-5", "-l", "red", "-m", "#4eb4fa", "-h", "green"] 600 ''} ${lib.optionalString config.custom.xmobarVpn '' , Run Com "sh" ["-c", "ip link show wg0 2>/dev/null | grep -q 'UP' && echo 'vpn: on' || echo 'vpn: off'"] "vpn" 30 ''} ] , sepChar = "%" , alignSep = "}{" , template = " %XMonadLog% | ${lib.optionalString config.custom.xmobarBattery "%battery% | "}${lib.optionalString config.custom.xmobarVpn "%vpn% | "}%cpu% | %memory% | %wlan0% }{%default:Master% | %date% " } ''; }; services.picom = { enable = true; backend = "egl"; vSync = true; }; programs.zathura = { enable = true; package = pkgs.zathuraPkgs.zathuraWrapper.override { plugins = with pkgs.zathuraPkgs; [ zathura_pdf_mupdf zathura_djvu ]; }; options = { selection-clipboard = "clipboard"; incremental-search = true; }; }; programs.home-manager.enable = true; xdg.mimeApps = { enable = true; defaultApplications = { "application/pdf" = [ "org.pwmt.zathura.desktop" ]; "image/vnd.djvu" = [ "org.pwmt.zathura.desktop" ]; "image/vnd.djvu+multipage" = [ "org.pwmt.zathura.desktop" ]; "text/html" = [ "firefox.desktop" ]; "x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "firefox.desktop" ]; }; }; }; }