mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-11 06:14:38 -05:00
feat: refactored home manager
This commit is contained in:
parent
65417d1809
commit
376c1d7b18
511 changed files with 1777 additions and 772 deletions
50
home/modules/gui/desktop/hyprland/default.nix
Executable file
50
home/modules/gui/desktop/hyprland/default.nix
Executable file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
# pkgs,
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
# hostname = config.networking.hostName;
|
||||
# inherit (flake.config.machines.devices) desktop laptop;
|
||||
configPath = ./config;
|
||||
configImports = {
|
||||
animations = import (configPath + /animations.nix);
|
||||
bind = import (configPath + /bind.nix) {
|
||||
inherit
|
||||
flake
|
||||
config
|
||||
;
|
||||
};
|
||||
bindm = import (configPath + /bindm.nix);
|
||||
binds = import (configPath + /binds.nix);
|
||||
# bindl =
|
||||
# if hostname == laptop.name
|
||||
# then import (configPath + /bindl.nix)
|
||||
# else null;
|
||||
decoration = import (configPath + /decoration.nix);
|
||||
dwindle = import (configPath + /dwindle.nix);
|
||||
exec-once = import (configPath + /exec-once.nix) {
|
||||
inherit
|
||||
flake
|
||||
;
|
||||
};
|
||||
general = import (configPath + /general.nix) {
|
||||
inherit
|
||||
flake
|
||||
;
|
||||
};
|
||||
input = import (configPath + /input.nix);
|
||||
misc = import (configPath + /misc.nix);
|
||||
windowrulev2 = import (configPath + /windowrulev2.nix);
|
||||
};
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# package = flake.inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = false;
|
||||
settings = configImports;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue