hydra ifd fixes #213
@@ -57,6 +57,8 @@ forEachSystem (
|
|||||||
|
|
||||||
all
|
all
|
||||||
rule 'MD013', :tables => false, :line_length => 220
|
rule 'MD013', :tables => false, :line_length => 220
|
||||||
|
exclude_rule 'MD029' # ordered list items separated by blank lines
|
||||||
|
exclude_rule 'MD041' # YAML frontmatter triggers false positives
|
||||||
'').outPath;
|
'').outPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,24 @@
|
|||||||
{ pkgs, lib, ... }:
|
{
|
||||||
# Disable stylix in Hydra builds where allow-import-from-derivation is disabled
|
pkgs,
|
||||||
# This is safe because desktop theming isn't needed for CI/CD builds
|
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
|
let
|
||||||
inHydraBuild = builtins.getEnv "HYDRA_ID" != "";
|
# 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
|
in
|
||||||
{
|
{
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = !inHydraBuild;
|
enable = !isRestricted;
|
||||||
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";
|
||||||
|
|||||||
@@ -1,12 +1,24 @@
|
|||||||
{ pkgs, lib, ... }:
|
{
|
||||||
# Disable stylix in Hydra builds where allow-import-from-derivation is disabled
|
pkgs,
|
||||||
# This is safe because desktop theming isn't needed for CI/CD builds
|
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
|
let
|
||||||
inHydraBuild = builtins.getEnv "HYDRA_ID" != "";
|
# 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
|
in
|
||||||
{
|
{
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = !inHydraBuild;
|
enable = !isRestricted;
|
||||||
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user