nixcfg/modules/nixos/desktop/addons/wofi/default.nix
2024-01-11 10:31:04 +00:00

24 lines
694 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.desktop.addons.wofi;
in
{
options.plusultra.desktop.addons.wofi = with types; {
enable =
mkBoolOpt false "Whether to enable the Wofi in the desktop environment.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ wofi wofi-emoji ];
# config -> .config/wofi/config
# css -> .config/wofi/style.css
# colors -> $XDG_CACHE_HOME/wal/colors
# plusultra.home.configFile."foot/foot.ini".source = ./foot.ini;
plusultra.home.configFile."wofi/config".source = ./config;
plusultra.home.configFile."wofi/style.css".source = ./style.css;
};
}