mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-12 17:16:07 +02:00
25 lines
448 B
Nix
25 lines
448 B
Nix
|
{ config, lib, pkgs, options, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.modules.desktop.apps.wofi;
|
||
|
in {
|
||
|
options.modules.desktop.apps.wofi = {
|
||
|
enable = mkOption {
|
||
|
type = types.bool;
|
||
|
default = false;
|
||
|
description = "";
|
||
|
};
|
||
|
executable = mkOption {
|
||
|
type = types.str;
|
||
|
default = "${pkgs.wofi}/bin/wofi";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
wofi
|
||
|
];
|
||
|
};
|
||
|
}
|