diff --git a/instances/theseus/configuration.nix b/instances/theseus/configuration.nix index 96d46ee9..6a6d664e 100644 --- a/instances/theseus/configuration.nix +++ b/instances/theseus/configuration.nix @@ -54,6 +54,9 @@ 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 4822846c..032f68b9 100644 --- a/modules/desktop/wpaperd.nix +++ b/modules/desktop/wpaperd.nix @@ -50,7 +50,6 @@ 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 @@ -62,21 +61,23 @@ in export SWWW_TRANSITION="fade" export SWWW_TRANSITION_DURATION="1" # export SWWW_TRANSITION_STEP="90" - - images=( ) # array of randomized images while true; do - for d in ''$(swww query | sed -nE 's/^: ([^:]+).*/\1/p'); do # see swww-query(1) - if [[ ''${#images[@]} == 0 ]]; then - images=( $(find $DIR -regextype posix-extended -type f -regex '.*\.(jpg|jpeg|gif|png|bmp|dds|exr|ico|tga|tiff|webp)$' | shuf) ) # fill queue if arr empty (rust image crate supported formats) - fi - - swww img --resize "''$RESIZE_TYPE" --outputs "''$d" "''${images[0]}" # show first image of arr - - images=("''${images[@]:1}") # pop first image of arr - + 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; - }; -}