diff --git a/flake.nix b/flake.nix index eb24b0a..1c7f8a6 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,7 @@ isNixOS = true; hostName = "default"; + animations = true; }; system = "x86_64-linux"; @@ -113,6 +114,7 @@ "${defaultUserConfig.username}@pitagoras" = mkHome { hostName = "pitagoras"; mainMonitor = "eDP-1"; + animations = false; }; "${defaultUserConfig.username}@pilecki" = mkHome { diff --git a/modules/hypr/hyprland.nix b/modules/hypr/hyprland.nix index 35a5044..89cffe5 100644 --- a/modules/hypr/hyprland.nix +++ b/modules/hypr/hyprland.nix @@ -25,9 +25,11 @@ in wayland.windowManager.hyprland = { enable = true; package = - if userConfig.isNixOS then inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland else null; - portalPackage = lib.mkIf ( - userConfig.isNixOS + if userConfig.isNixOS then + inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland + else + null; + portalPackage = lib.mkIf (userConfig.isNixOS ) inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; xwayland.enable = true; @@ -59,7 +61,7 @@ in }; animations = { - enabled = false; + enabled = userConfig.animations; bezier = [ "easeOutQuint,0.23,1,0.32,1" "easeInOutCubic,0.65,0.05,0.36,1"