added hyperland

This commit is contained in:
Nickiel12 2023-10-22 19:31:56 -07:00
parent 8ac7378eba
commit f13db672b8
2 changed files with 50 additions and 18 deletions

View file

@ -86,11 +86,6 @@ let
# Drawing tablet driver
opentabletdriver
];
# tmp_pkgs = cli_packages ++ gui_application else cli_packages;
# install_pkgs = builtins.trace ''${osConfig.networking.hostName}'' tmp_pkgs;
in
{
@ -103,11 +98,20 @@ in
./modules/tmux.nix
./modules/wezterm.nix
./modules/xdg.nix
./modules/hyprland.nix
./modules/yazi.nix
./modules/zsh.nix
];
home.file = {
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
home = {
file = {
".config/awesome" = {
source = ./rsrcs/awesome;
recursive = true;
@ -119,15 +123,6 @@ in
".config/awesome/calendar.lua".source = "${awesome-wm-widgets}/calendar-widget/batteryarc.lua";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
home = {
# Home Manager needs a bit of information about you and the
# paths it should manage.
username = user;

37
modules/hyprland.nix Normal file
View file

@ -0,0 +1,37 @@
{config, pkgs, ...}:
let
in
{
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
# Whether to enable XWayland
xwayland.enable = true;
# Optional
# Whether to enable hyprland-session.target on hyprland startup
systemd.enable = true;
# Whether to enable patching wlroots for better Nvidia support
enableNvidiaPatches = true;
settings = {
decoration = {
shadow_offset = "0 5";
"col.shadow" = "rgba(00000099)";
};
"$mod" = "SUPER";
bindm = [
# mouse movements
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
"$mod ALT, mouse:272, resizewindow"
];
};
};
}