Skip to content

Commit

Permalink
cavalier: init (#758)
Browse files Browse the repository at this point in the history
Link: #758

Reviewed-by: NAHO <[email protected]>
Reviewed-by: awwpotato <[email protected]>
  • Loading branch information
brckd authored Jan 18, 2025
1 parent e00ed7e commit 51ad2ce
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/cavalier/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ config, lib, ... }:

{
options.stylix.targets.cavalier.enable =
config.lib.stylix.mkEnableTarget "Cavalier" true;

config =
lib.mkIf (config.stylix.enable && config.stylix.targets.cavalier.enable)
{
programs.cavalier.settings.general = {
ColorProfiles =
let
inherit (config.lib.stylix) colors;
in
lib.singleton {
Name = "Stylix";
FgColors = [ colors.base05 ];
BgColors = [ colors.base00 ];
};
ActiveProfile = 0;
};
};
}
19 changes: 19 additions & 0 deletions modules/cavalier/testbed.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ lib, pkgs, ... }:

let
package = pkgs.cavalier;
in
{
stylix.testbed.application = {
enable = true;
name = "org.nickvision.cavalier";
inherit package;
};

home-manager.sharedModules = lib.singleton {
programs.cavalier = {
enable = true;
inherit package;
};
};
}

0 comments on commit 51ad2ce

Please sign in to comment.