mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
added hyperland
This commit is contained in:
parent
8ac7378eba
commit
f13db672b8
2 changed files with 50 additions and 18 deletions
25
home.nix
25
home.nix
|
@ -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,11 +98,20 @@ 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 = {
|
# 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" = {
|
".config/awesome" = {
|
||||||
source = ./rsrcs/awesome;
|
source = ./rsrcs/awesome;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
@ -119,15 +123,6 @@ in
|
||||||
".config/awesome/calendar.lua".source = "${awesome-wm-widgets}/calendar-widget/batteryarc.lua";
|
".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
|
# 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
37
modules/hyprland.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue