Added keybindings

This commit is contained in:
2026-03-07 18:17:35 +01:00
parent 650c05c3e8
commit fa14034de4
+22 -5
View File
@@ -845,12 +845,29 @@ This is top file of this level which contains just an import statement for all r
** =generated/mangowc/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
#+BEGIN_SRC nix :tangle generated/mangowc/keyboard_binds/top.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
imports = [
# No subfolders to import
];
# .. put any code here
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
let
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix");
in
{
home-manager.users.${user.username} = {
home.stateVersion = userConfig.stateVersion;
home.username = userConfig.username;
home.homeDirectory = userConfig.homeDirectory;
wayland.windowManager.hyprland = {
enable = true;
extraConfig = bindingsContent;
};
};
}
#+END_SRC