working on hernov

This commit is contained in:
2026-03-13 17:30:17 +01:00
parent 3acb7b78d4
commit b2e38639aa
+20 -41
View File
@@ -1,44 +1,23 @@
{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
source = ./variables.conf
# source = ./behaviour.conf
# source = ./layout.conf
# source = ./animations.conf
# source = ./layer-rules.conf
# source = ./window-rules.conf
# source = ./monitor-rules.conf
# source = ./workspace-rules.conf
source = ./bindings.conf
let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
# Dynamically read all files in assets/hyprland/conf/
hyprlandConfs =
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"))
(name: {
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
});
in
{
# NixOS: Enable Hyprland (optional)
programs.hyprland = {
enable = true;
};
# source = ./exec-once.conf
# Home Manager: Hyprland-specific configurations
home-manager.users.${user.username} = {
# 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;
};
# Ensure the Hyprland config directory exists
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
} // hyprlandConfs;
};
general {
gaps_in = 2
gaps_out = 4
border_size = 2
# Gradient syntax: color color angle (e.g. 45deg). :contentReference[oaicite:5]{index=5}
col.active_border = $blue $green 45deg
col.inactive_border = $inactive
layout = scrolling
resize_on_border = true
extend_border_grab_area = 20 # Makes it easier to "grab" the edge
}