.
This commit is contained in:
atagen 2025-01-21 18:10:33 +11:00
commit 8fe3ddc38e
7 changed files with 249 additions and 0 deletions

9
example/caddy.nix Normal file
View file

@ -0,0 +1,9 @@
{
pkg = pkgs.caddy;
args = "run -c %CFG% --adapter caddyfile";
config = ''
http://*:8080 {
respond "hello"
}
'';
}

20
example/flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
inputs = {
ides.url = "git+https://git.atagen.co/atagen/ides";
};
outputs = {
nixpkgs,
ides,
...
}: let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
mkShell = ides.lib.use pkgs;
in {
devShells.x86_64-linux.default = mkShell {
noCC = true;
services = {
caddy = import ./caddy.nix;
};
};
};
}

11
example/shell.nix Normal file
View file

@ -0,0 +1,11 @@
let
pkgs = import <nixpkgs> {};
ides = import (fetchGit {
url = "https://git.atagen.co/atagen/ides";
});
mkShell = ides.use pkgs;
in
mkShell {
noCC = true;
services.caddy = import ./caddy.nix;
}