Skip to content

Commit

Permalink
home/anyrun: init
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichthagel committed Apr 8, 2024
1 parent a980382 commit dc89652
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 13 deletions.
69 changes: 56 additions & 13 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};

anyrun = {
url = "github:anyrun-org/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};

spicetify-nix = {
url = "github:the-argus/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -77,6 +82,7 @@
extra-substituters = [
"https://nix-community.cachix.org"
"https://hyprland.cachix.org"
"https://anyrun.cachix.org"
];

trusted-substituters = [
Expand All @@ -89,6 +95,7 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"jdnixos:Hij0WitMIbRrp5zUXc70y9VvzIuBroTp1l8hmguEbjQ="
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
}
45 changes: 45 additions & 0 deletions home/programs/anyrun.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
config,
lib,
inputs,
inputs',
...
}:
let
cfg = config.licht.programs.anyrun;
in
{
imports = [ inputs.anyrun.homeManagerModules.default ];

options.licht.programs.anyrun = {
enable = lib.mkEnableOption "anyrun" // {
default = config.licht.graphical.hyprland.enable;
};
};

config = lib.mkIf cfg.enable {
programs.anyrun = {
enable = true;
config = {
plugins = with inputs'.anyrun.packages; [ applications ];
x = {
fraction = 0.5;
};
y = {
fraction = 0.3;
};
width = {
fraction = 0.3;
};
hideIcons = false;
ignoreExclusiveZones = false;
layer = "overlay";
};
extraCss = ''
window {
background: transparent;
}
'';
};
};
}
1 change: 1 addition & 0 deletions home/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
imports = [
./wezterm

./anyrun.nix
./discord.nix
./firefox.nix
./foot.nix
Expand Down

0 comments on commit dc89652

Please sign in to comment.