feat(home-manager): add support for hyprlock (#330)

* feat(home-manager): add support for hyprlock

* feat(hyprlock): enable in tests

* refactor(hyprlock): disable darwin tests
This commit is contained in:
Willow 2024-09-22 06:28:10 +10:00 committed by GitHub
parent f4c051d174
commit faea883811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 1 deletions

View file

@ -482,4 +482,4 @@
} }
}, },
"version": 3 "version": 3
} }

View file

@ -19,6 +19,7 @@
./gtk.nix ./gtk.nix
./helix.nix ./helix.nix
./hyprland.nix ./hyprland.nix
./hyprlock.nix
./imv.nix ./imv.nix
./k9s.nix ./k9s.nix
./kitty.nix ./kitty.nix

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.hyprlock.catppuccin;
enable = cfg.enable && config.programs.hyprlock.enable;
in
{
options.programs.hyprlock.catppuccin =
lib.ctp.mkCatppuccinOpt { name = "hyprlock"; }
// {
accent = lib.ctp.mkAccentOpt "hyprlock";
};
config = lib.mkIf enable {
programs.hyprlock.settings = {
source = [ "${sources.hyprland}/themes/${cfg.flavor}.conf" ];
"$accent" = "\$${cfg.accent}";
"$accentAlpha" = "\$${cfg.accent}Alpha";
};
};
}

View file

@ -19,6 +19,7 @@
cava.enable = lib.mkForce false; # NOTE: this may actually work on darwin, but the package is currently not supported cava.enable = lib.mkForce false; # NOTE: this may actually work on darwin, but the package is currently not supported
foot.enable = lib.mkForce false; foot.enable = lib.mkForce false;
fuzzel.enable = lib.mkForce false; fuzzel.enable = lib.mkForce false;
hyprlock.enable = lib.mkForce false;
imv.enable = lib.mkForce false; imv.enable = lib.mkForce false;
mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently
rio.enable = lib.mkForce false; # marked as broken rio.enable = lib.mkForce false; # marked as broken

View file

@ -36,6 +36,7 @@
# listing explicitly so we know it's tested # listing explicitly so we know it's tested
glamour.catppuccin.enable = true; glamour.catppuccin.enable = true;
helix.enable = true; helix.enable = true;
hyprlock.enable = true;
imv.enable = true; imv.enable = true;
k9s.enable = true; k9s.enable = true;
kitty.enable = true; kitty.enable = true;