summaryrefslogtreecommitdiff
path: root/unmoved-modules/home-manager/hypr/default.nix
diff options
context:
space:
mode:
authorscouckel <james.krinsky@gmail.com>2026-03-25 11:14:16 -0500
committerscouckel <james.krinsky@gmail.com>2026-03-25 11:14:16 -0500
commit2a50a86e3faea6deae9adc76572cc543baf678d3 (patch)
tree95e8bb2771a847cfcc51ca90ac6a2de9548b5bec /unmoved-modules/home-manager/hypr/default.nix
parent3406096fa9f5dfd669e0b7a43e3f2227d51b10a7 (diff)
inital move and renaming
Diffstat (limited to 'unmoved-modules/home-manager/hypr/default.nix')
-rw-r--r--unmoved-modules/home-manager/hypr/default.nix140
1 files changed, 140 insertions, 0 deletions
diff --git a/unmoved-modules/home-manager/hypr/default.nix b/unmoved-modules/home-manager/hypr/default.nix
new file mode 100644
index 0000000..2ec9301
--- /dev/null
+++ b/unmoved-modules/home-manager/hypr/default.nix
@@ -0,0 +1,140 @@
+{ config, pkgs, lib, inputs, ... }:
+
+{
+ options = {
+ hyprland.enable = lib.mkEnableOption "enables hyprland";
+ };
+
+ imports = [
+ ./decoration.nix
+ ./binds.nix
+ ./input.nix
+ ./waybar-hyprland.nix
+ ./hyprlock.nix
+ ./hypridle.nix
+ ./hyprpaper.nix
+ ./rofi-hyprland.nix
+ ];
+
+ config = lib.mkIf config.hyprland.enable {
+ #fixing issues
+
+ xdg.portal = {
+ enable = true;
+
+ config = {
+ common = {
+ default = [ "hyprland" ];
+ };
+ };
+
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-hyprland
+ ];
+ };
+
+ home.packages = with pkgs; [
+ # pyprland
+ ];
+
+ home.file.".config/hypr/pyprland.toml".source = ./pyprland.toml;
+
+ home.sessionVariables.NIXOS_OZONE_WL = "1";
+
+ home.pointerCursor = {
+ gtk.enable = true;
+ # x11.enable = true;
+ package = pkgs.bibata-cursors;
+ name = "Bibata-Modern-Classic";
+ size = 12;
+ };
+
+ gtk = {
+ enable = true;
+
+ theme = {
+ package = pkgs.flat-remix-gtk;
+ name = "Flat-Remix-GTK-Grey-Darkest";
+ };
+
+ iconTheme = {
+ package = pkgs.adwaita-icon-theme;
+ name = "Adwaita";
+ };
+
+ font = {
+ name = "Sans";
+ size = 11;
+ };
+
+ gtk3.extraConfig = {
+ gtk-application-prefer-dark-theme = true;
+ };
+
+ gtk4.extraConfig = {
+ gtk-application-prefer-dark-theme = true;
+ };
+ };
+
+ wayland.windowManager.hyprland.systemd.variables = ["--all"];
+
+ # ok now actually hyprland
+
+ wayland.windowManager.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+
+ settings = {
+ exec-once = [
+ "lxqt-policykit-agent"
+ "waybar"
+ "hyprpaper"
+ "waypaper --restore"
+ # "pypr"
+ ];
+
+ # environment variables
+ env = [
+ "XCURSOR_SIZE,24"
+ "HYPRCURSOR_SIZE,24"
+ ];
+
+ general = {
+ gaps_in = 0;
+ gaps_out = 0;
+
+ border_size = 1;
+
+ # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
+ "col.active_border" = "rgba(7DAeA3ee) rgba(89B482ee) 45deg";
+ "col.inactive_border" = "rgba(504945ee)";
+
+ # Set to true enable resizing windows by clicking and dragging on borders and gaps
+ resize_on_border = false;
+
+ # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
+ allow_tearing = false;
+
+ layout = "dwindle";
+ };
+
+ misc = {
+ force_default_wallpaper = 1;
+ disable_hyprland_logo = false;
+ vfr = true;
+ };
+
+ dwindle = {
+ pseudotile = true;
+ preserve_split = true;
+ };
+ };
+
+ extraConfig = "
+ xwayland {
+ force_zero_scaling = true;
+ }
+ ";
+ };
+ };
+}