Compare commits

..

1 commit

Author SHA1 Message Date
Artturin 32a0e09123 Add flake and fix config.toml
remove theme.toml

It appears you based the repo on a theme or something?
2025-04-29 22:16:00 +03:00
2 changed files with 16 additions and 3 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1735821806, "lastModified": 1745870676,
"narHash": "sha256-cuNapx/uQeCgeuhUhdck3JKbgpsml259sjUQnWM7zW8=", "narHash": "sha256-IpldIaWrlasZZlKHPxitkrJ1ex4EVphuWYXVDdF5kf4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d6973081434f88088e5321f83ebafe9a1167c367", "rev": "fdb6c240562c5ad516253419cc6f26819705d3e0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -40,6 +40,11 @@
''; '';
}) })
) { }; ) { };
serve-site = prev.writers.writeBashBin "serve-site" ''
${prev.lib.getExe prev.zola} build --base-url ""
${prev.lib.getExe prev.python3} -m http.server --bind 127.0.0.1 8081 --directory ./public
'';
}) })
]; ];
}; };
@ -50,6 +55,14 @@
bluespec-docs = pkgs.bluespec-docs; bluespec-docs = pkgs.bluespec-docs;
}; };
apps = {
# `nix run` will run this
default = {
type = "app";
program = "${pkgs.serve-site}/bin/serve-site";
};
};
devShells.default = devShells.default =
with pkgs; with pkgs;
mkShell { mkShell {