-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(home-manager): init hyprland module (#56)
- Loading branch information
1 parent
f616c3c
commit 88376af
Showing
6 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ in | |
./lazygit.nix | ||
./starship.nix | ||
./helix.nix | ||
./hyprland.nix | ||
./glamour.nix | ||
./gtk.nix | ||
./mako.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ config | ||
, lib | ||
, sources | ||
, ... | ||
}: | ||
let | ||
cfg = config.wayland.windowManager.hyprland.catppuccin; | ||
enable = cfg.enable && config.wayland.windowManager.hyprland.enable; | ||
in | ||
{ | ||
options.wayland.windowManager.hyprland.catppuccin = | ||
lib.ctp.mkCatppuccinOpt "hyprland"; | ||
|
||
# Because of how nix merges options and hyprland interprets options, sourcing | ||
# the file does not work. instead, parse the theme and put it in settings so | ||
# the variables appear early enough in the file to be applied properly. | ||
config.wayland.windowManager.hyprland.settings = lib.mkIf enable | ||
(lib.ctp.fromINI (sources.hyprland + /themes/${cfg.flavour}.conf)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ in | |
}; | ||
|
||
wayland.windowManager.sway = ctpEnable; | ||
wayland.windowManager.hyprland = ctpEnable; | ||
}; | ||
}; | ||
|
||
|