diff --git a/home/programs/graphical/launchers/walker/default.nix b/home/programs/graphical/launchers/walker/default.nix index cb92836..11335eb 100644 --- a/home/programs/graphical/launchers/walker/default.nix +++ b/home/programs/graphical/launchers/walker/default.nix @@ -1,13 +1,20 @@ { + osConfig, pkgs, + lib, ... -}: { - home.packages = with pkgs; [ - walker - ]; +}: let + inherit (lib) mkIf; + cfg = osConfig.myOptions.programs.launchers.walker; +in: { + config = mkIf cfg.enable { + home.packages = with pkgs; [ + walker + ]; - xdg.configFile = { - "walker/config.json".source = ./config.json; - "walker/style.css".source = ./style.css; + xdg.configFile = { + "walker/config.json".source = ./config.json; + "walker/style.css".source = ./style.css; + }; }; } diff --git a/home/programs/graphical/launchers/wofi/default.nix b/home/programs/graphical/launchers/wofi/default.nix index 1838261..b165d67 100644 --- a/home/programs/graphical/launchers/wofi/default.nix +++ b/home/programs/graphical/launchers/wofi/default.nix @@ -1,17 +1,26 @@ -_: { - programs.wofi = { - enable = true; - settings = { - width = "40%"; - height = "30%"; - show = "drun"; - prompt = "Search"; - allow_images = true; - allow_markup = true; - insensitive = true; +{ + osConfig, + lib, + ... +}: let + inherit (lib) mkIf; + cfg = osConfig.myOptions.programs.launchers.wofi; +in: { + config = mkIf cfg.enable { + programs.wofi = { + enable = true; + settings = { + width = "40%"; + height = "30%"; + show = "drun"; + prompt = "Search"; + allow_images = true; + allow_markup = true; + insensitive = true; + }; + style = '' + ${builtins.readFile ./style.css} + ''; }; - style = '' - ${builtins.readFile ./style.css} - ''; }; } diff --git a/hosts/herugrim/default.nix b/hosts/herugrim/default.nix index 6b6beb7..01046e6 100644 --- a/hosts/herugrim/default.nix +++ b/hosts/herugrim/default.nix @@ -77,6 +77,7 @@ home-manager = { enable = true; stateVersion = "23.11"; + git = { userName = "ItsDrike"; userEmail = "itsdrike@protonmail.com"; @@ -85,6 +86,7 @@ key = "FA2745890B7048C0"; }; }; + wms.hyprland = { enable = true; monitor = [ diff --git a/options/home/default.nix b/options/home/default.nix index 506671b..9f3f0c2 100644 --- a/options/home/default.nix +++ b/options/home/default.nix @@ -3,6 +3,7 @@ in { imports = [ + ./programs ./git.nix ./wms.nix ]; diff --git a/options/home/programs/default.nix b/options/home/programs/default.nix new file mode 100644 index 0000000..071a174 --- /dev/null +++ b/options/home/programs/default.nix @@ -0,0 +1,21 @@ +{ lib, ... }: with lib; let + inherit (lib) mkEnableOption mkOption types; +in +{ + imports = [ + ./programs + ./git.nix + ./wms.nix + ]; + + options.myOptions.home-manager.programs = { + launchers = { + wofi.enable = mkEnableOption "Wofi launcher"; + walker.enable = mkOption { + type = types.bool; + default = true; + description = "Enable Walker launcher."; + }; + }; + }; +}