diff --git a/flake.nix b/flake.nix index b7dd42c..df34f44 100644 --- a/flake.nix +++ b/flake.nix @@ -16,5 +16,15 @@ path = ./rust; description = "A simple flake with an overlay for rust"; }; + + c = { + path = ./c; + description = "Flake for c or cpp development"; + }; + + typst = { + path = ./typst; + description = "A flake for automatically compiling typst files"; + }; }; } diff --git a/typst/.envrc b/typst/.envrc new file mode 100644 index 0000000..8572e73 --- /dev/null +++ b/typst/.envrc @@ -0,0 +1,3 @@ +use flake +typst watch file.typ +sioyek file.pdf diff --git a/typst/flake.nix b/typst/flake.nix new file mode 100644 index 0000000..87240f8 --- /dev/null +++ b/typst/flake.nix @@ -0,0 +1,22 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, ... }@inputs: inputs.utils.lib.eachSystem [ + "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" + ] (system: let + pkgs = import nixpkgs { + inherit system; + }; + in { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + typst + sioyek + typstfmt + ]; + }; + }); +}