Skip to content

Commit

Permalink
feat: try hyprland with home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Sep 26, 2024
1 parent 0d05c94 commit a737839
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 36 deletions.
22 changes: 1 addition & 21 deletions home/config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,7 @@ exec-once = swaync
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = NIXOS_OZONE_WL,1
env = WLR_RENDERER_ALLOW_SOFTWARE,1

# https://wiki.hyprland.org/Configuring/Environment-variables/
env = CLUTTER_BACKEND,waland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_CACHE_HOME,$HOME/.cache
env = XDG_CONFIG_HOME,$HOME/.config
env = XDG_DATA_HOME,$HOME/.local/share
env = GDK_BACKEND,wayland
env = GTK_USE_PORTAL,1
env = QT_QPA_PLATFORM,wayland
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = SDL_VIDEODRIVER,wayland

# others
env = MOZ_ENABLE_WAYLAND,1


#####################
### LOOK AND FEEL ###
Expand Down
22 changes: 22 additions & 0 deletions home/user/environment.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
WLR_RENDERER_ALLOW_SOFTWARE = "1";

# https://wiki.hyprland.org/Configuring/Environment-variables/
CLUTTER_BACKEND = "waland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
GDK_BACKEND = "wayland";
GTK_USE_PORTAL = "1";
QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt6ct";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
SDL_VIDEODRIVER = "wayland";

# others
MOZ_ENABLE_WAYLAND = "1";

# Python SSL self signed certs
REQUESTS_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt";
};
Expand Down
2 changes: 1 addition & 1 deletion home/user/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
};

};
}
}
1 change: 1 addition & 0 deletions home/user/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./firefox.nix
./git.nix
./home-manager.nix
./hyprland.nix
./starship.nix
./vscode.nix
./zsh.nix
Expand Down
1 change: 1 addition & 0 deletions home/user/programs/hyprland.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ wayland.windowManager.hyprland.enable = true; }
1 change: 0 additions & 1 deletion system/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
./boot.nix
./ca-certificates.nix
./dns.nix
./dm.nix
./file.nix
./game.nix
./gpg.nix
Expand Down
12 changes: 0 additions & 12 deletions system/modules/dm.nix

This file was deleted.

2 changes: 1 addition & 1 deletion system/modules/nixsettings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
options = "--delete-older-than 7d";
};
};

nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
Expand Down

0 comments on commit a737839

Please sign in to comment.