From 5cabd3cefe88de20391cc3b13396a37f03c76d10 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Mon, 28 Apr 2025 10:57:52 +0200 Subject: [PATCH] Add oxirun --- flake.nix | 1 + modules/programs/oxi/default.nix | 3 ++- modules/programs/oxi/oxirun.nix | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 modules/programs/oxi/oxirun.nix diff --git a/flake.nix b/flake.nix index eabe92d..cbc7dae 100644 --- a/flake.nix +++ b/flake.nix @@ -41,6 +41,7 @@ oxinoti.url = "github:Xetibo/OxiNoti"; oxidash.url = "github:Xetibo/OxiDash"; oxipaste.url = "github:Xetibo/OxiPaste"; + oxirun.url = "github:Xetibo/OxiRun"; hyprdock.url = "github:Xetibo/hyprdock"; reset.url = "github:Xetibo/ReSet"; reset-plugins.url = "github:Xetibo/ReSet-Plugins"; diff --git a/modules/programs/oxi/default.nix b/modules/programs/oxi/default.nix index ad31d84..9c3ac57 100644 --- a/modules/programs/oxi/default.nix +++ b/modules/programs/oxi/default.nix @@ -8,8 +8,9 @@ imports = [ ./oxidash.nix ./oxinoti.nix - ./oxishut.nix ./oxipaste.nix + ./oxirun.nix + ./oxishut.nix ]; options.mods.oxi = { enable = lib.mkOption { diff --git a/modules/programs/oxi/oxirun.nix b/modules/programs/oxi/oxirun.nix new file mode 100644 index 0000000..55f4d75 --- /dev/null +++ b/modules/programs/oxi/oxirun.nix @@ -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; + } + ); +} -- 2.51.2