hydra ifd fixes #213

Merged
ahuston-0 merged 4 commits from feature/mattermost into main 2026-04-13 23:54:48 -04:00
3 changed files with 5 additions and 38 deletions
Showing only changes of commit 5880242e06 - Show all commits

View File

@@ -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";

View File

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

View File

@@ -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";