Compare commits

..

2 commits

Author SHA1 Message Date
GaspardCulis
c1c601da96 refactor(anyrun): Now using anixrun plugin
Thanks to the nix rewrite of the config
2024-10-01 08:45:13 +02:00
GaspardCulis
d50993c00f chore(flake): Added anyrun and anixrun inputs 2024-10-01 08:44:51 +02:00
3 changed files with 126 additions and 8 deletions

View file

@ -1,5 +1,47 @@
{ {
"nodes": { "nodes": {
"anixrun": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1727281125,
"narHash": "sha256-/d65UInO08BTrE1JrXwc0/+tLdkRQuM4H2eSirbuLcI=",
"owner": "GaspardCulis",
"repo": "anixrun",
"rev": "95931fe5365120cafe46cbc8e3e0df5667b50db6",
"type": "github"
},
"original": {
"owner": "GaspardCulis",
"repo": "anixrun",
"type": "github"
}
},
"anyrun": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1721135360,
"narHash": "sha256-ZhSA0e45UxiOAjEVqkym/aULh0Dt+KHJLNda7bjx9UI=",
"owner": "anyrun-org",
"repo": "anyrun",
"rev": "c6101a31a80b51e32e96f6a77616b609770172e0",
"type": "github"
},
"original": {
"owner": "anyrun-org",
"repo": "anyrun",
"type": "github"
}
},
"aquamarine": { "aquamarine": {
"inputs": { "inputs": {
"hyprutils": [ "hyprutils": [
@ -77,6 +119,27 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"anyrun",
"nixpkgs"
]
},
"locked": {
"lastModified": 1717285511,
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -155,7 +218,7 @@
"hyprutils": "hyprutils", "hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"systems": "systems", "systems": "systems_2",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
@ -324,6 +387,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"anixrun": "anixrun",
"anyrun": "anyrun",
"disko": "disko", "disko": "disko",
"end-rs": "end-rs", "end-rs": "end-rs",
"home-manager": "home-manager", "home-manager": "home-manager",
@ -350,6 +415,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",

View file

@ -26,6 +26,15 @@
url = "github:Dr-42/end-rs"; url = "github:Dr-42/end-rs";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
anyrun = {
url = "github:anyrun-org/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
anixrun = {
url = "github:GaspardCulis/anixrun";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {

View file

@ -1,9 +1,38 @@
{pkgs, ...}: { {
home.file = { pkgs,
".config/anyrun".source = ../anyrun; inputs,
}; ...
}: {
home.packages = [ imports = [
pkgs.anyrun inputs.anyrun.homeManagerModules.anyrun # Import the anyrun home-manager module
]; ];
programs.anyrun = {
enable = true;
config = {
plugins = [
inputs.anyrun.packages.${pkgs.system}.applications
inputs.anyrun.packages.${pkgs.system}.symbols
inputs.anyrun.packages.${pkgs.system}.websearch
inputs.anyrun.packages.${pkgs.system}.rink
inputs.anyrun.packages.${pkgs.system}.shell
inputs.anixrun.packages.${pkgs.system}.default
];
x = {fraction = 0.5;};
y = {fraction = 0.3;};
width = {fraction = 0.3;};
hideIcons = false;
ignoreExclusiveZones = false;
layer = "top";
hidePluginInfo = true;
closeOnClick = true;
showResultsImmediately = false;
maxEntries = null;
};
extraCss = builtins.readFile ./style.css;
extraConfigFiles."applications.ron".text = builtins.readFile ./applications.ron;
extraConfigFiles."symbols.ron".text = builtins.readFile ./symbols.ron;
extraConfigFiles."websearch.ron".text = builtins.readFile ./websearch.ron;
};
} }