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:
parent
f4c051d174
commit
faea883811
5 changed files with 25 additions and 1 deletions
|
@ -482,4 +482,4 @@
|
|||
}
|
||||
},
|
||||
"version": 3
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
./gtk.nix
|
||||
./helix.nix
|
||||
./hyprland.nix
|
||||
./hyprlock.nix
|
||||
./imv.nix
|
||||
./k9s.nix
|
||||
./kitty.nix
|
||||
|
|
21
modules/home-manager/hyprlock.nix
Normal file
21
modules/home-manager/hyprlock.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
cava.enable = lib.mkForce false; # NOTE: this may actually work on darwin, but the package is currently not supported
|
||||
foot.enable = lib.mkForce false;
|
||||
fuzzel.enable = lib.mkForce false;
|
||||
hyprlock.enable = lib.mkForce false;
|
||||
imv.enable = lib.mkForce false;
|
||||
mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently
|
||||
rio.enable = lib.mkForce false; # marked as broken
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
# listing explicitly so we know it's tested
|
||||
glamour.catppuccin.enable = true;
|
||||
helix.enable = true;
|
||||
hyprlock.enable = true;
|
||||
imv.enable = true;
|
||||
k9s.enable = true;
|
||||
kitty.enable = true;
|
||||
|
|
Loading…
Reference in a new issue