feat: refactor, hyprland - greet with autologin

This commit is contained in:
Ryan Yin
2023-12-17 23:00:19 +08:00
parent 7d03e63bdd
commit a04a058077
33 changed files with 414 additions and 380 deletions

View File

@@ -1,4 +1,7 @@
{
lib,
pkgs,
hyprland,
catppuccin-hyprland,
...
}: {
@@ -7,12 +10,35 @@
./wayland-apps.nix
];
# hyprland configs, based on https://github.com/notwidow/hyprland
xdg.configFile."hypr" = {
source = ./hypr-conf;
recursive = true;
# NOTE:
# (Required) NixOS Module: enables critical components needed to run Hyprland properly
# (Optional) Home-manager module: lets you declaratively configure Hyprland
wayland.windowManager.hyprland = {
enable = true;
package = hyprland.packages.${pkgs.system}.hyprland;
settings = lib.mkForce {};
extraConfig = builtins.readFile ./hypr-conf/hyprland.conf;
# programs.grammastep need this to be enabled.
systemd.enable = true;
};
# hyprland configs, based on https://github.com/notwidow/hyprland
xdg.configFile."hypr/mako" = {
source = ./hypr-conf/mako;
recursive = true;
};
xdg.configFile."hypr/scripts" = {
source = ./hypr-conf/scripts;
recursive = true;
};
xdg.configFile."hypr/waybar" = {
source = ./hypr-conf/waybar;
recursive = true;
};
xdg.configFile."hypr/wlogout" = {
source = ./hypr-conf/wlogout;
recursive = true;
};
xdg.configFile."hypr/themes" = {
source = "${catppuccin-hyprland}/themes";
recursive = true;