Working on bindings

This commit is contained in:
2026-03-08 00:17:18 +01:00
parent 53dae84520
commit 6ea59f7417
+6 -6
View File
@@ -4,7 +4,6 @@
lib,
user,
flakeRoot,
userConfig,
...
}:
let
@@ -24,9 +23,11 @@ in
# Home Manager: Hyprland-specific configurations
home-manager.users.${user.username} = {
home.stateVersion = userConfig.stateVersion;
home.username = userConfig.username;
home.homeDirectory = userConfig.homeDirectory;
# Use config.home-manager.users.${user.username} instead of userConfig
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "23.11"; # Default fallback
home.username = user.username; # Use the 'user' argument
home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
wayland.windowManager.hyprland = {
enable = true;
@@ -35,8 +36,7 @@ in
# Merge dynamic Hyprland configs with existing xdg.configFile
xdg.configFile = {
# Your existing manual configs (if any)
# "hypr/hyprland.conf".text = "...";
}
// hyprlandConfs; # Merge dynamic configs here
// hyprlandConfs;
};
}