diff --git a/hosts/desktops/common/impermanence.nix b/hosts/desktops/common/impermanence.nix index 8507a91..8a7887e 100644 --- a/hosts/desktops/common/impermanence.nix +++ b/hosts/desktops/common/impermanence.nix @@ -16,6 +16,7 @@ "/var/lib/nixos" "/var/lib/flatpak" "/var/lib/tailscale" + "/var/lib/waydroid" "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" ]; diff --git a/users/common/programs.nix b/users/common/programs.nix index 775b6e0..2dc4000 100644 --- a/users/common/programs.nix +++ b/users/common/programs.nix @@ -39,10 +39,37 @@ }; }; languages = { - language = [{ - name = "nix"; - auto-format = true; - formatter.command = "nixfmt"; + language = [ + { + name = "nix"; + # scope = "source.nix"; + auto-format = true; + formatter.command = "nixfmt"; + } + { + name = "typst"; + scope = "source.typ"; + file-types = [ "typ" ]; + roots = [ ]; + injection-regex = "^typst$"; + auto-format = true; + comment-token = "//"; + indent = { + tab-width = 2; + unit = " "; + }; + formatter = { + command = "prettypst"; + args = [ "--use-std-in" "--use-std-out" ]; + }; + } + ]; + grammar = [{ + name = "typst"; + source = { + git = "https://github.com/SeniorMars/tree-sitter-typst"; + rev = "2e66ef4b798a26f0b82144143711f3f7a9e8ea35"; + }; }]; }; themes.catppuccin-mocha_transparent = {