mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added hyperland
This commit is contained in:
parent
8ac7378eba
commit
f13db672b8
2 changed files with 50 additions and 18 deletions
31
home.nix
31
home.nix
|
@ -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,23 +98,11 @@ in
|
|||
./modules/tmux.nix
|
||||
./modules/wezterm.nix
|
||||
./modules/xdg.nix
|
||||
./modules/hyprland.nix
|
||||
./modules/yazi.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.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
@ -128,6 +111,18 @@ in
|
|||
programs.direnv.nix-direnv.enable = true;
|
||||
|
||||
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
|
||||
# paths it should manage.
|
||||
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