Something went wrong. Try again.
Just a first repo to make sure I have tangled and everything set up correctly. I figured this would be a good way to say hello :)
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435{ description = "Markdown dev environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f { pkgs = import nixpkgs { inherit system; }; }); in { devShells = forAllSystems ({ pkgs }: { default = pkgs.mkShell { packages = with pkgs; [ glow # terminal markdown renderer markdownlint-cli2 marksman # markdown LSP pandoc # universal document converter ]; }; });
apps = forAllSystems ({ pkgs }: { default = { type = "app"; program = toString (pkgs.writeShellScript "render-markdown" '' ${pkgs.glow}/bin/glow ${./hello.md} ''); }; }); };}