From 5880242e0638467e6bfd6063adbefcd2543fe3ec Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 13 Apr 2026 23:48:42 -0400 Subject: [PATCH] hydra ifd fixes --- systems/artemision/stylix.nix | 21 ++------------------- systems/palatine-hill/hydra.nix | 1 + systems/selinunte/stylix.nix | 21 ++------------------- 3 files changed, 5 insertions(+), 38 deletions(-) diff --git a/systems/artemision/stylix.nix b/systems/artemision/stylix.nix index eb8ce89..c4be25f 100644 --- a/systems/artemision/stylix.nix +++ b/systems/artemision/stylix.nix @@ -1,24 +1,7 @@ -{ - pkgs, - lib, - config, - ... -}: -# Disable stylix in restricted evaluation contexts (like Hydra) -# where allow-import-from-derivation is disabled. -# Desktop theming isn't needed for CI/CD builds anyway. -let - # Check if we're in a restricted evaluation context - # In restricted eval, builtins.currentTime throws an error - isRestricted = - let - try = builtins.tryEval builtins.currentTime; - in - !try.success; -in +{ pkgs, ... }: { stylix = { - enable = !isRestricted; + enable = true; image = "${pkgs.hyprland}/share/hypr/wall2.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png"; diff --git a/systems/palatine-hill/hydra.nix b/systems/palatine-hill/hydra.nix index f7ba6d3..6dd66e1 100644 --- a/systems/palatine-hill/hydra.nix +++ b/systems/palatine-hill/hydra.nix @@ -57,6 +57,7 @@ in minimumDiskFree = 50; minimumDiskFreeEvaluator = 100; extraConfig = '' + allow_import_from_derivation = true timeout = 3600 diff --git a/systems/selinunte/stylix.nix b/systems/selinunte/stylix.nix index eb8ce89..c4be25f 100644 --- a/systems/selinunte/stylix.nix +++ b/systems/selinunte/stylix.nix @@ -1,24 +1,7 @@ -{ - pkgs, - lib, - config, - ... -}: -# Disable stylix in restricted evaluation contexts (like Hydra) -# where allow-import-from-derivation is disabled. -# Desktop theming isn't needed for CI/CD builds anyway. -let - # Check if we're in a restricted evaluation context - # In restricted eval, builtins.currentTime throws an error - isRestricted = - let - try = builtins.tryEval builtins.currentTime; - in - !try.success; -in +{ pkgs, ... }: { stylix = { - enable = !isRestricted; + enable = true; image = "${pkgs.hyprland}/share/hypr/wall2.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png";