Something went wrong. Try again.
Something went wrong. Try again.
APP flake.nix
1234567891011121314151617181920212223242526272829303132{ description = "CONCRD.APP";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs, }: let system = "x86_64-linux"; pkgs = import nixpkgs {inherit system;};
serve = pkgs.writeShellApplication { name = "serve"; runtimeInputs = [pkgs.static-web-server pkgs.xdg-utils]; text = '' xdg-open http://127.0.0.1:8000 >/dev/null 2>&1 & exec static-web-server \ --root . \ --host 127.0.0.1 \ --port 8000 \ --page404 404.html ''; }; in { apps.${system}.default = { type = "app"; program = "${serve}/bin/serve"; }; };}