Renewed binds + wofi

This commit is contained in:
2026-03-07 22:32:19 +01:00
parent 32fd6b1069
commit e5abaaca37
2 changed files with 360 additions and 326 deletions
+333 -316
View File
File diff suppressed because it is too large Load Diff
+27 -10
View File
@@ -546,7 +546,19 @@ This is top file of this level which contains just an import statement for all r
** =generated/hyprland/hyprland.nix= ** =generated/hyprland/hyprland.nix=
The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure. The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.
#+BEGIN_SRC nix :tangle generated/hyprland/hyprland.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/hyprland/hyprland.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, user, inputs, flakeRoot,... }: {
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
let
hyprlandConf = builtins.readFile (flakeRoot + "/assets/hyprland/conf/hyprland.conf");
userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix");
in
{ {
# Nix settings to use Hyprland's cache for packages # Nix settings to use Hyprland's cache for packages
nix.settings = { nix.settings = {
@@ -563,10 +575,10 @@ The ./generated/top.nix file acts as an anchor or entry point for the entire cha
# Hyprland-specific Home Manager configurations # Hyprland-specific Home Manager configurations
home-manager.users.${user.username} = { home-manager.users.${user.username} = {
wayland.windowManager.hyprland = { home.stateVersion = userConfig.stateVersion;
enable = true; home.username = userConfig.username;
settings = { }; home.homeDirectory = userConfig.homeDirectory;
}; xdg.configFile."hypr/hyprland.conf".text = hyprlandConf;
}; };
} }
#+END_SRC #+END_SRC
@@ -741,21 +753,26 @@ This is top file of this level which contains just an import statement for all r
** =generated/hyprland/keyboard_binds/top.nix= ** =generated/hyprland/keyboard_binds/top.nix=
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
#+BEGIN_SRC nix :tangle generated/hyprland/keyboard_binds/top.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/hyprland/keyboard_binds/top.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, user, inputs, flakeRoot, ... }: {
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
let let
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf"); bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in in
{ {
# Home Manager configurations must be nested under the user
home-manager.users.${user.username} = { home-manager.users.${user.username} = {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
config = configFile; extraConfig = bindingsContent;
}; };
}; };
} }
#+END_SRC #+END_SRC
** =generated/hyprland/notifications/top.nix= ** =generated/hyprland/notifications/top.nix=