vicinae: init (#1994)

Link: https://github.com/nix-community/stylix/pull/1994

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
0xda157 2025-11-21 11:34:06 -10:00 committed by GitHub
parent 2424a3923d
commit 89f99bfeb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 132 additions and 0 deletions

61
modules/vicinae/hm.nix Normal file
View file

@ -0,0 +1,61 @@
{
mkTarget,
lib,
options,
...
}:
mkTarget {
name = "vicinae";
humanName = "Vicinae";
configElements = lib.optionals (options.programs ? vicinae) [
(
{ colors, polarity }:
{
services.vicinae = {
settings.theme.name = "stylix";
themes.stylix = {
meta = {
name = "stylix";
description = "theme generated by stylix";
variant = if polarity == "either" then "light" else polarity;
};
colors = with colors.withHashtag; {
core = {
background = base00;
foreground = base05;
secondary_background = base01;
border = base02;
accent = base0D;
};
accents = {
# TODO: magenta and purple shouldn't be the same color
blue = base0D;
green = base0B;
magenta = base0E;
orange = base09;
purple = base0E;
red = base08;
yellow = base0A;
cyan = base0C;
};
list.item = {
selection = {
background.name = base02;
secondary_background = base03;
};
hover.background = base01;
};
};
};
};
}
)
(
{ opacity }:
{
services.vicinae.settings.window.opacity = opacity.popups;
}
)
];
}

6
modules/vicinae/meta.nix Normal file
View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
name = "Vicinae";
homepage = "https://docs.vicinae.com";
maintainers = [ lib.maintainers.da157 ];
}

View file

@ -0,0 +1,11 @@
{ lib, ... }:
{
stylix.testbed.ui = {
graphicalEnvironment = "hyprland";
command.text = "sleep 5 && vicinae open";
};
home-manager.sharedModules = lib.singleton {
services.vicinae.enable = true;
};
}