From 3442744803b952fefbffc779c858a56a7c269ff6 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 13 Apr 2026 23:19:01 -0400 Subject: [PATCH] hydra ifd fixes --- systems/artemision/stylix.nix | 15 +++++++-------- systems/selinunte/stylix.nix | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/systems/artemision/stylix.nix b/systems/artemision/stylix.nix index 06053da..81f291e 100644 --- a/systems/artemision/stylix.nix +++ b/systems/artemision/stylix.nix @@ -1,13 +1,12 @@ -{ pkgs, ... }: -# let -# randWallpaper = pkgs.runCommand "stylix-wallpaper" { } '' -# numWallpapers = -# $((1 + $RANDOM % 10)) - -# in +{ pkgs, lib, ... }: +# Disable stylix in Hydra builds where allow-import-from-derivation is disabled +# This is safe because desktop theming isn't needed for CI/CD builds +let + inHydraBuild = builtins.getEnv "HYDRA_ID" != ""; +in { stylix = { - enable = true; + enable = !inHydraBuild; image = "${pkgs.hyprland}/share/hypr/wall2.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png"; diff --git a/systems/selinunte/stylix.nix b/systems/selinunte/stylix.nix index 06053da..81f291e 100644 --- a/systems/selinunte/stylix.nix +++ b/systems/selinunte/stylix.nix @@ -1,13 +1,12 @@ -{ pkgs, ... }: -# let -# randWallpaper = pkgs.runCommand "stylix-wallpaper" { } '' -# numWallpapers = -# $((1 + $RANDOM % 10)) - -# in +{ pkgs, lib, ... }: +# Disable stylix in Hydra builds where allow-import-from-derivation is disabled +# This is safe because desktop theming isn't needed for CI/CD builds +let + inHydraBuild = builtins.getEnv "HYDRA_ID" != ""; +in { stylix = { - enable = true; + enable = !inHydraBuild; image = "${pkgs.hyprland}/share/hypr/wall2.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png";