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 # Drawing tablet driver
opentabletdriver opentabletdriver
]; ];
# tmp_pkgs = cli_packages ++ gui_application else cli_packages;
# install_pkgs = builtins.trace ''${osConfig.networking.hostName}'' tmp_pkgs;
in in
{ {
@ -103,23 +98,11 @@ in
./modules/tmux.nix ./modules/tmux.nix
./modules/wezterm.nix ./modules/wezterm.nix
./modules/xdg.nix ./modules/xdg.nix
./modules/hyprland.nix
./modules/yazi.nix ./modules/yazi.nix
./modules/zsh.nix ./modules/zsh.nix
]; ];
home.file = {
".config/awesome" = {
source = ./rsrcs/awesome;
recursive = true;
};
".config/awesome/cpu-widget.lua".source = "${awesome-wm-widgets}/cpu-widget/cpu-widget.lua";
".config/awesome/ram-widget.lua".source = "${awesome-wm-widgets}/ram-widget/ram-widget.lua";
".config/awesome/batteryarc.lua".source = "${awesome-wm-widgets}/batteryarc-widget/batteryarc.lua";
".config/awesome/awesome-wm-widgets/spaceman.jpg".source = "${awesome-wm-widgets}/batteryarc-widget/spaceman.jpg";
".config/awesome/calendar.lua".source = "${awesome-wm-widgets}/calendar-widget/batteryarc.lua";
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
@ -128,6 +111,18 @@ in
programs.direnv.nix-direnv.enable = true; programs.direnv.nix-direnv.enable = true;
home = { home = {
file = {
".config/awesome" = {
source = ./rsrcs/awesome;
recursive = true;
};
".config/awesome/cpu-widget.lua".source = "${awesome-wm-widgets}/cpu-widget/cpu-widget.lua";
".config/awesome/ram-widget.lua".source = "${awesome-wm-widgets}/ram-widget/ram-widget.lua";
".config/awesome/batteryarc.lua".source = "${awesome-wm-widgets}/batteryarc-widget/batteryarc.lua";
".config/awesome/awesome-wm-widgets/spaceman.jpg".source = "${awesome-wm-widgets}/batteryarc-widget/spaceman.jpg";
".config/awesome/calendar.lua".source = "${awesome-wm-widgets}/calendar-widget/batteryarc.lua";
};
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
username = user; 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"
];
};
};
}