Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1007 B
Nix
43 lines
1007 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.services.fractalart;
|
|
in
|
|
{
|
|
options.services.fractalart = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Enable FractalArt for generating colorful wallpapers on login";
|
|
};
|
|
|
|
width = mkOption {
|
|
type = types.nullOr types.int;
|
|
default = null;
|
|
example = 1920;
|
|
description = "Screen width";
|
|
};
|
|
|
|
height = mkOption {
|
|
type = types.nullOr types.int;
|
|
default = null;
|
|
example = 1080;
|
|
description = "Screen height";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.haskellPackages.FractalArt ];
|
|
services.xserver.displayManager.sessionCommands =
|
|
"${pkgs.haskellPackages.FractalArt}/bin/FractalArt --no-bg -f .background-image"
|
|
+ optionalString (cfg.width != null) " -w ${toString cfg.width}"
|
|
+ optionalString (cfg.height != null) " -h ${toString cfg.height}";
|
|
};
|
|
}
|