hydra ifd fixes
All checks were successful
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 8s
Check Nix flake / Perform Nix flake checks (pull_request) Successful in 2m17s

This commit is contained in:
2026-04-13 23:48:42 -04:00
parent 61502c1490
commit 5880242e06
3 changed files with 5 additions and 38 deletions

View File

@@ -1,24 +1,7 @@
{ { pkgs, ... }:
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
{ {
stylix = { stylix = {
enable = !isRestricted; enable = true;
image = "${pkgs.hyprland}/share/hypr/wall2.png"; image = "${pkgs.hyprland}/share/hypr/wall2.png";
#image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png";

View File

@@ -57,6 +57,7 @@ in
minimumDiskFree = 50; minimumDiskFree = 50;
minimumDiskFreeEvaluator = 100; minimumDiskFreeEvaluator = 100;
extraConfig = '' extraConfig = ''
allow_import_from_derivation = true
<git-input> <git-input>
timeout = 3600 timeout = 3600
</git-input> </git-input>

View File

@@ -1,24 +1,7 @@
{ { pkgs, ... }:
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
{ {
stylix = { stylix = {
enable = !isRestricted; enable = true;
image = "${pkgs.hyprland}/share/hypr/wall2.png"; image = "${pkgs.hyprland}/share/hypr/wall2.png";
#image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png"; #image = "/home/alice/Pictures/Screenshots/screenshot_2024-12-04-2030.png";