nichts/modules/gui/rofi.nix
2024-04-14 22:14:49 +02:00

22 lines
600 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
username = config.modules.other.system.username;
cfg = config.modules.programs.rofi;
in
{
options.modules.programs.rofi.enable = mkEnableOption "rofi";
options.modules.other.system.wayland = mkOption {
type = types.bool;
description = "Does this system use wayland?";
default = false;
}; #FIXME: move this to the (hopefully then) refactored options directory
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
(if config.modules.other.system.wayland then rofi-wayland else rofi)
];
};
}