add input and flake

This commit is contained in:
2024-11-26 16:26:29 +01:00
parent 0801f25bf1
commit 54e058b988
3 changed files with 158 additions and 134 deletions

View File

@@ -1,138 +1,140 @@
{ anyrun, ... }: {
nix.settings = {
builders-use-substitutes = true;
extra-substituters = [
"https://anyrun.cachix.org"
];
{ config, lib, anyrun, ... }: with lib;{
config = mkMerge [{
nix.settings = {
builders-use-substitutes = true;
extra-substituters = [
"https://anyrun.cachix.org"
];
extra-trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
home-manager.users.alelu = { pkgs, ... }: {
imports = [ anyrun.homeManagerModules.anyrun ];
programs.anyrun = {
enable = true;
config = {
plugins = with anyrun.packages.${pkgs.system}; [
applications
dictionary
kidex
randr
rink
shell
translate
symbols
];
width.fraction = 0.3;
y.absolute = 15;
hidePluginInfo = true;
closeOnClick = true;
};
extraCss = /*css */ ''
window {
background: transparent;
/* rgba(0, 0, 0, 0.8);*/
}
#match,
#entry,
#plugin,
#main {
background: transparent;
}
#match.activatable {
padding: 12px 14px;
border-radius: 12px;
color: white;
margin-top: 4px;
border: 2px solid transparent;
transition: all 0.3s ease;
}
#match.activatable:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
/* border-top: 2px solid rgba(255, 255, 255, 0.1); */
}
#match.activatable #match-title {
font-size: 1.3rem;
font-weight: bolder;
}
#match.activatable:hover {
background: $bg_color;
}
#match-title,
#match-desc {
color: inherit;
}
#match.activatable:hover,
#match.activatable:selected {
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
#match.activatable:selected+#match.activatable,
#match.activatable:hover+#match.activatable {
border-top: 2px solid transparent;
}
#match.activatable:selected,
#match.activatable:hover:selected {
color: $color-fg;
background: $selected_bg_color;
}
#match,
#plugin {
box-shadow: none;
}
#entry {
padding-left: 18px;
font-size: 1.2rem;
font-weight: bolder;
color: $fg_color;
background: $bg_color;
box-shadow: none;
border-radius: 12px;
border: $border $selected_bg_color;
background-color: $grid-bg;
}
box#main {
background: $widget-bg;
border-radius: 20px;
padding: 15px;
/* box-shadow: 0px 2px 33px -5px rgba(0, 0, 0, 0.5); */
}
row:first-child {
margin-top: 6px;
}
'';
extra-trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
home-manager.users.alelu = { pkgs, ... }: {
wayland.windowManager.hyprland = {
settings = {
bind = [
"alt, space, exec, anyrun"
];
imports = [ anyrun.homeManagerModules.anyrun ];
programs.anyrun = {
enable = true;
config = {
plugins = with anyrun.packages.${pkgs.system}; [
applications
dictionary
kidex
randr
rink
shell
translate
symbols
];
width.fraction = 0.3;
y.absolute = 15;
hidePluginInfo = true;
closeOnClick = true;
};
extraCss = /*css */ ''
window {
background: transparent;
/* rgba(0, 0, 0, 0.8);*/
}
#match,
#entry,
#plugin,
#main {
background: transparent;
}
#match.activatable {
padding: 12px 14px;
border-radius: 12px;
color: white;
margin-top: 4px;
border: 2px solid transparent;
transition: all 0.3s ease;
}
#match.activatable:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
/* border-top: 2px solid rgba(255, 255, 255, 0.1); */
}
#match.activatable #match-title {
font-size: 1.3rem;
font-weight: bolder;
}
#match.activatable:hover {
background: $bg_color;
}
#match-title,
#match-desc {
color: inherit;
}
#match.activatable:hover,
#match.activatable:selected {
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
#match.activatable:selected+#match.activatable,
#match.activatable:hover+#match.activatable {
border-top: 2px solid transparent;
}
#match.activatable:selected,
#match.activatable:hover:selected {
color: $color-fg;
background: $selected_bg_color;
}
#match,
#plugin {
box-shadow: none;
}
#entry {
padding-left: 18px;
font-size: 1.2rem;
font-weight: bolder;
color: $fg_color;
background: $bg_color;
box-shadow: none;
border-radius: 12px;
border: $border $selected_bg_color;
background-color: $grid-bg;
}
box#main {
background: $widget-bg;
border-radius: 20px;
padding: 15px;
/* box-shadow: 0px 2px 33px -5px rgba(0, 0, 0, 0.5); */
}
row:first-child {
margin-top: 6px;
}
'';
};
wayland.windowManager.hyprland = {
settings = {
bind = [
"alt, space, exec, anyrun"
];
};
};
};
};
}];
}

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
description = "Graphite DE config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=24.05";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
barManager.url = "gitlab:graphite9570848/barmanager";
hyprland-workspaces.url = "gitlab:graphite9570848/hyprland-workspace-flake";
};
outputs = { self, nixpkgs, unstable, barManager, hyprland-workspaces, ... }: {
nixosModules.graphite = (import ./hyprland.nix {
inherit nixpkgs;
inherit unstable;
inherit barManager;
inherit hyprland-workspaces;
});
nixosModules.default = self.nixosModules.graphite;
};
}

View File

@@ -1,5 +1,4 @@
{ lib, unstable, barManager, hyprland-workspaces, ... }: {
{ unstable, barManager, hyprland-workspaces, ... }: {
imports = [
./anyrun.nix
];
@@ -238,8 +237,7 @@
"eDP-1, 800x1280, auto, 1, transform, 3"
];
exec-once = [
# "eww daemon --force-wayland && eww open-many bar bar1"
"~/.config/eww/scripts/launcher"
"eww daemon --force-wayland && eww open-many bar bar1"
"hyprpaper"
"systemctl --user start lxqt-policykit"
"swww-daemon & sleep 0.1 & swww img ~/.config/swww/wallpaper_animated.gif -o DP-1"