Ver 1.0
This commit is contained in:
parent
b6b87d5aed
commit
9c72a71585
3546 changed files with 18655 additions and 0 deletions
54
nixosVista/homeManager/hyprland/customUser.nix
Normal file
54
nixosVista/homeManager/hyprland/customUser.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
nixosVista,
|
||||
...
|
||||
}: let
|
||||
cfg = nixosVista.hyprland;
|
||||
in {
|
||||
############################################################
|
||||
# Options exposed to the user
|
||||
############################################################
|
||||
|
||||
options.nixosVista.hyprland = {
|
||||
customTop = lib.mkOption {
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
Custom Hyprland configuration injected near the top
|
||||
of the generated config.
|
||||
'';
|
||||
};
|
||||
|
||||
customBottom = lib.mkOption {
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
Custom Hyprland configuration injected at the very bottom
|
||||
of the generated config.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
############################################################
|
||||
# Inject into fragment system
|
||||
############################################################
|
||||
|
||||
config = lib.mkIf nixosVista.enable {
|
||||
nixosVista.hyprland.fragments.customTop = lib.mkIf (cfg.customTop != "") ''
|
||||
############################################################
|
||||
# Your Custom User / nixosVista.hyprland.customTop
|
||||
############################################################
|
||||
|
||||
${cfg.customTop}
|
||||
'';
|
||||
|
||||
nixosVista.hyprland.fragments.customBottom = lib.mkIf (cfg.customBottom != "") ''
|
||||
############################################################
|
||||
# Custom User Bottom Config / nixosVista.hyprland.customBottom
|
||||
############################################################
|
||||
|
||||
${cfg.customBottom}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue