working on hernov

This commit is contained in:
2026-03-13 17:30:54 +01:00
parent b2e38639aa
commit 73b3b5b43f
+46 -20
View File
@@ -1,23 +1,49 @@
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
{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
# source = ./exec-once.conf
let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
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;
};
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
# Home Manager: Hyprland-specific configurations
home-manager.users.${user.username} = rec {
home.stateVersion = "25.11";
home.username = user.username;
home.homeDirectory = user.homeDirectory;
wayland.windowManager.hyprland = {
enable = true;
};
# Ensure the Hyprland config directory exists and has the correct permissions
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
}
// hyprlandConfs;
# Ensure the home directory and .config directory have the correct permissions
home.file.".config".source = pkgs.writeDashScriptBin "mkdir-config" ''
mkdir -p $HOME/.config
chown -R ${user.username}:users $HOME/.config
chmod -R 755 $HOME/.config
'';
};
}