def tile_nix

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/nix_darwin/setting/ops.bend:500

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/brew/ops.bend as BrO

500# A tile from its type, URL, arrangement, displayas and showas (plist fields; the last three for folders).
501def tile_nix(+key: String, +t: String, +url: String, +arr: String, +disp: String, +show: String) -> String:
502  Bool.pick(String, String.eq(key, "persistent-apps"), app_tile(t, url_path(url)),
503    Bool.pick(String, String.eq(t, "directory-tile"),
504      "{ folder = { path = " ++ BrO.nix_str(url_path(url)) ++ "; arrangement = \"" ++ arrangement(arr) ++ "\"; displayas = \"" ++ displayas(disp) ++ "\"; showas = \"" ++ showas(show) ++ "\"; }; }",
505      "{ file = " ++ BrO.nix_str(url_path(url)) ++ "; }"))

Uses (10)

Used by (1)