{ config, lib, pkgs, options, ... }: { imports = [ ./swayfx.nix ]; options.desktop = { windowManager = lib.mkOption { description = "Which window manager to use"; default = null; type = with lib.types; nullOr (enum [ ]); }; }; config = { fonts.fontconfig.enable = true; home = { file."Pictures/blossoms.jpg" = { enable = (config.desktop.windowManager != null); source = ./blossoms.jpg; }; packages = with pkgs; [ brightnessctl fira-code nerd-fonts.fira-code # monospace font ]; }; programs = { foot = { enable = lib.mkDefault (config.desktop.windowManager != null); settings = { bell = { notify = true; urgent = true; }; colors = { alpha = 0.8; background = "191724"; foreground = "e0def4"; regular0 = "26233a"; regular1 = "eb6f92"; regular2 = "9ccfd8"; regular3 = "f6c177"; regular4 = "31748f"; regular5 = "c4a7e7"; regular6 = "ebbcba"; regular7 = "e0def4"; bright0 = "47435d"; bright1 = "ff98ba"; bright2 = "c5f9ff"; bright3 = "ffeb9e"; bright4 = "5b9ab7"; bright5 = "eed0ff"; bright6 = "ffe5e3"; bright7 = "fefcff"; flash = "f6c177"; cursor = "191724 e0def4"; }; cursor.blink = true; main = { dpi-aware = true; font = "FiraCode Nerd Font Mono:size=8"; }; mouse.hide-when-typing = true; }; }; fuzzel = { enable = lib.mkDefault (config.desktop.windowManager != null); settings = { border.width = 2; colors = { background = "191724ff"; border = "ebbcbaff"; input = "e0def4ff"; match = "ebbcbaff"; prompt = "e0def4ff"; selection = "524f67ff"; selection-match = "ebbcbaff"; selection-text = "e0def4ff"; text = "e0def4ff"; }; main = { dpi-aware = true; font = "Fira Code:size=6"; show-actions = true; sort-result = false; terminal = "foot -a '{cmd}' -T '{cmd}' {cmd}"; use-bold = true; }; }; }; librewolf = { enable = lib.mkDefault (config.desktop.windowManager != null); profiles = { default = { }; noRFP = { id = 1; settings = { "privacy.resistFingerprinting" = false; "webgl.disabled" = false; }; }; }; settings = { "browser.uidensity" = 1; "sidebar.animation.enabled" = false; "sidebar.new-sidebar.has-used" = true; "sidebar.verticalTabs" = true; "sidebar.visibility" = "hide-sidebar"; }; }; }; }; }