working on hernov
This commit is contained in:
@@ -1,44 +1,23 @@
|
|||||||
{
|
source = ./variables.conf
|
||||||
config,
|
# source = ./behaviour.conf
|
||||||
pkgs,
|
# source = ./layout.conf
|
||||||
lib,
|
# source = ./animations.conf
|
||||||
user,
|
# source = ./layer-rules.conf
|
||||||
flakeRoot,
|
# source = ./window-rules.conf
|
||||||
...
|
# source = ./monitor-rules.conf
|
||||||
}:
|
# source = ./workspace-rules.conf
|
||||||
|
source = ./bindings.conf
|
||||||
|
|
||||||
let
|
# source = ./exec-once.conf
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Home Manager: Hyprland-specific configurations
|
general {
|
||||||
home-manager.users.${user.username} = {
|
gaps_in = 2
|
||||||
# Use config.home-manager.users.${user.username} instead of userConfig
|
gaps_out = 4
|
||||||
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "23.11"; # Default fallback
|
border_size = 2
|
||||||
home.username = user.username; # Use the 'user' argument
|
# Gradient syntax: color color angle (e.g. 45deg). :contentReference[oaicite:5]{index=5}
|
||||||
home.homeDirectory =
|
col.active_border = $blue $green 45deg
|
||||||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
col.inactive_border = $inactive
|
||||||
|
layout = scrolling
|
||||||
wayland.windowManager.hyprland = {
|
resize_on_border = true
|
||||||
enable = true;
|
extend_border_grab_area = 20 # Makes it easier to "grab" the edge
|
||||||
};
|
|
||||||
|
|
||||||
# Ensure the Hyprland config directory exists
|
|
||||||
xdg.configFile = {
|
|
||||||
"hypr/.keep" = {
|
|
||||||
text = "";
|
|
||||||
};
|
|
||||||
} // hyprlandConfs;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user