diff --git a/instances/theseus/configuration.nix b/instances/theseus/configuration.nix index 6a6d664e..96d46ee9 100644 --- a/instances/theseus/configuration.nix +++ b/instances/theseus/configuration.nix @@ -54,9 +54,6 @@ in gimp3 anytype monero-gui - orca-slicer - unstable.kicad - dune3d pencil2d python311Packages.brother-ql ptouch-print diff --git a/modules/desktop/wpaperd.nix b/modules/desktop/wpaperd.nix index 032f68b9..4822846c 100644 --- a/modules/desktop/wpaperd.nix +++ b/modules/desktop/wpaperd.nix @@ -50,6 +50,7 @@ in unitConfig.Requisite = "graphical-session.target"; serviceConfig.Restart = "on-failure"; wantedBy = [ "swww-daemon.service" ]; + path = with pkgs;[ coreutils findutils cfg.package gnused]; script = '' set -eox export DEFAULT_INTERVAL=300 # In seconds @@ -61,23 +62,21 @@ in export SWWW_TRANSITION="fade" export SWWW_TRANSITION_DURATION="1" # export SWWW_TRANSITION_STEP="90" + + images=( ) # array of randomized images while true; do - find "''$DIR" -type f \ - | while read -r img; do - echo "''$( 3 then + types.deferredModule + else if spec ? "$ref" then + buildOptionType { + depth = depth + 1; + spec = getRef spec."$ref"; + } + else if spec ? allOf then + allOfType + else if !spec ? type then + json.type + + else if isList spec.type then + types.oneOf (map (x: buildOptionType x) spec.type) + else if spec.type == "string" then + strType + else if spec.type == "boolean" then + types.bool + else if spec.type == "number" then + types.number + else if spec.type == "array" then + arrType + else if spec.type == "object" then + objType + else + (throw "unknown json schema type: ${spec.type}"); + + in + type; + + buildOption = + { + spec, + depth, + required ? false, + ... + }: + let + type = buildOptionType { inherit spec depth; }; + in + mkOption { + type = if required then type else types.nullOr type; + description = if spec ? markdownDescription then spec.markdownDescription else "no description qwq"; + default = + if required then + if spec.type == "object" then + { } + else if spec.type == "array" then + [ ] + else + null + else + null; + + }; + +in +{ + generate = json.generate; + type = buildOptionType { + depth = 0; + spec = schema; + }; +}