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:
parent
2424a3923d
commit
89f99bfeb8
6 changed files with 132 additions and 0 deletions
42
flake/dev/flake.lock
generated
42
flake/dev/flake.lock
generated
|
|
@ -66,6 +66,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": [
|
||||
"dev-systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": [
|
||||
|
|
@ -192,6 +212,7 @@
|
|||
"nvf": "nvf",
|
||||
"spicetify-nix": "spicetify-nix",
|
||||
"treefmt-nix": "treefmt-nix",
|
||||
"vicinae": "vicinae",
|
||||
"zen-browser": "zen-browser"
|
||||
}
|
||||
},
|
||||
|
|
@ -238,6 +259,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"vicinae": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": [
|
||||
"dev-nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763505293,
|
||||
"narHash": "sha256-huleUPkt0iZJZy4e/KPhcHK4ueeqaqiMUu7Ft6NVDFU=",
|
||||
"owner": "vicinaehq",
|
||||
"repo": "vicinae",
|
||||
"rev": "e600ffc4ad1e87f3389327adfab8bb8d2f34261e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "vicinaehq",
|
||||
"repo": "vicinae",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"zen-browser": {
|
||||
"inputs": {
|
||||
"home-manager": [
|
||||
|
|
|
|||
|
|
@ -179,6 +179,14 @@
|
|||
inputs.nixpkgs.follows = "dev-nixpkgs";
|
||||
};
|
||||
|
||||
vicinae = {
|
||||
url = "github:vicinaehq/vicinae";
|
||||
inputs = {
|
||||
nixpkgs.follows = "dev-nixpkgs";
|
||||
flake-utils.inputs.systems.follows = "dev-systems";
|
||||
};
|
||||
};
|
||||
|
||||
zen-browser = {
|
||||
url = "github:0xc000022070/zen-browser-flake";
|
||||
inputs = {
|
||||
|
|
|
|||
61
modules/vicinae/hm.nix
Normal file
61
modules/vicinae/hm.nix
Normal 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
6
modules/vicinae/meta.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
name = "Vicinae";
|
||||
homepage = "https://docs.vicinae.com";
|
||||
maintainers = [ lib.maintainers.da157 ];
|
||||
}
|
||||
11
modules/vicinae/testbeds/vicinae.nix
Normal file
11
modules/vicinae/testbeds/vicinae.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -45,6 +45,10 @@ let
|
|||
|
||||
nvf = inputs.nvf.nixosModules.default;
|
||||
|
||||
vicinae.home-manager.sharedModules = [
|
||||
inputs.vicinae.homeManagerModules.default
|
||||
];
|
||||
|
||||
zen-browser.home-manager.sharedModules = [
|
||||
inputs.zen-browser.homeModules.default
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue