diff --git a/flake.lock b/flake.lock index 4d91220..5265c74 100644 --- a/flake.lock +++ b/flake.lock @@ -18,6 +18,27 @@ "type": "github" } }, + "anyrun": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1701453400, + "narHash": "sha256-hI9+KBShsSfvWX7bmRa/1VI20WGat3lDXmbceMZzMS4=", + "owner": "Kirottu", + "repo": "anyrun", + "rev": "e14da6c37337ffa3ee1bc66965d58ef64c1590e5", + "type": "github" + }, + "original": { + "owner": "Kirottu", + "repo": "anyrun", + "type": "github" + } + }, "base16-schemes": { "flake": false, "locked": { @@ -152,6 +173,27 @@ } }, "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "anyrun", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1696343447, + "narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { "inputs": { "nixpkgs-lib": "nixpkgs-lib_2" }, @@ -169,7 +211,7 @@ "type": "github" } }, - "flake-parts_2": { + "flake-parts_3": { "inputs": { "nixpkgs-lib": [ "nixvim", @@ -710,7 +752,7 @@ }, "nix-gaming": { "inputs": { - "flake-parts": "flake-parts", + "flake-parts": "flake-parts_2", "nixpkgs": "nixpkgs_5" }, "locked": { @@ -907,7 +949,7 @@ "inputs": { "devshell": "devshell", "flake-compat": "flake-compat", - "flake-parts": "flake-parts_2", + "flake-parts": "flake-parts_3", "home-manager": "home-manager_2", "nix-darwin": "nix-darwin", "nixpkgs": [ @@ -960,6 +1002,7 @@ "root": { "inputs": { "ags": "ags", + "anyrun": "anyrun", "firefox-addons": "firefox-addons", "hardware": "hardware", "helix": "helix", diff --git a/flake.nix b/flake.nix index a8f7c35..4209795 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + anyrun = { + url = "github:Kirottu/anyrun"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-gaming = { #NEEDFIX:url = "github:fufexan/nix-gaming"; url ="github:NotAShelf/nix-gaming"; diff --git a/home/modules/desktop/wayland/default.nix b/home/modules/desktop/wayland/default.nix index dd06093..9b20eea 100644 --- a/home/modules/desktop/wayland/default.nix +++ b/home/modules/desktop/wayland/default.nix @@ -6,7 +6,7 @@ ./notification ./utility ./windowManager - # ./launcher + ./launcher ]; options.homeModules.desktop.wayland = { diff --git a/home/modules/desktop/wayland/launcher/anyrun/default.nix b/home/modules/desktop/wayland/launcher/anyrun/default.nix new file mode 100644 index 0000000..b2250ac --- /dev/null +++ b/home/modules/desktop/wayland/launcher/anyrun/default.nix @@ -0,0 +1,24 @@ +{ config, lib, inputs, pkgs, ... }: + +let + cfg = config.homeModules.desktop.wayland.launcher.anyrun; +in + +{ + imports = [ + inputs.anyrun.homeManagerModules.default + ]; + + config = lib.mkIf cfg.enable { + programs.anyrun = { + enable = true; + config = { + plugins = with inputs.anyrun.packages.${pkgs.system}; [ + applications + randr + ]; + }; + }; + }; + +} diff --git a/home/modules/desktop/wayland/launcher/default.nix b/home/modules/desktop/wayland/launcher/default.nix index e69de29..1c24438 100644 --- a/home/modules/desktop/wayland/launcher/default.nix +++ b/home/modules/desktop/wayland/launcher/default.nix @@ -0,0 +1,13 @@ +{ lib, ... }: + +{ + imports = [ + ./anyrun + ]; + + options.homeModules.desktop.wayland.launcher = { + anyrun = { + enable = lib.mkEnableOption "enable anyrun launcher module"; + }; + }; +} diff --git a/home/profile/hyprland/default.nix b/home/profile/hyprland/default.nix index 2b45a82..a07137a 100644 --- a/home/profile/hyprland/default.nix +++ b/home/profile/hyprland/default.nix @@ -16,6 +16,7 @@ in lockscreen.hyprlock.enable = true; notification.mako.enable = true; bar.waybar.enable = true; + launcher.anyrun.enable = true; }; communication = { discord.enable = true; diff --git a/system/modules/nix/subs.nix b/system/modules/nix/subs.nix index f051716..8ddc92e 100644 --- a/system/modules/nix/subs.nix +++ b/system/modules/nix/subs.nix @@ -14,6 +14,7 @@ in "https://hyprland.cachix.org" "https://nix-community.cachix.org" "https://nix-gaming.cachix.org" + "https://anyrun.cachix.org" ]; trusted-public-keys = [ @@ -22,6 +23,7 @@ in "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" + "anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s=" ]; }; };