Add oxirun (#7)
This commit is contained in:
parent
145ca4d804
commit
3a0b6081c7
3 changed files with 23 additions and 1 deletions
|
|
@ -8,8 +8,9 @@
|
|||
imports = [
|
||||
./oxidash.nix
|
||||
./oxinoti.nix
|
||||
./oxishut.nix
|
||||
./oxipaste.nix
|
||||
./oxirun.nix
|
||||
./oxishut.nix
|
||||
];
|
||||
options.mods.oxi = {
|
||||
enable = lib.mkOption {
|
||||
|
|
|
|||
20
modules/programs/oxi/oxirun.nix
Normal file
20
modules/programs/oxi/oxirun.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
...
|
||||
}: {
|
||||
options.mods.oxi.oxirun = {
|
||||
enable = lib.mkOption {
|
||||
default = true;
|
||||
example = false;
|
||||
type = lib.types.bool;
|
||||
description = "Enables OxiRun";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.mods.oxi.oxirun.enable && config.mods.oxi.enable) (
|
||||
lib.optionalAttrs (options ? xdg.configFile) {
|
||||
programs.oxirun.enable = true;
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue