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