proof of concept qotd server

This commit is contained in:
2025-07-29 18:06:12 +02:00
commit 4812da3f2f
10 changed files with 301 additions and 0 deletions

37
flake.nix Normal file
View File

@@ -0,0 +1,37 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in f system pkgs);
in {
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.uiua
];
};
});
packages = forAllSystems (system: pkgs: {
default = pkgs.callPackage ./nix/package.nix {};
});
overlays.default = final: prev: {
qotd = self.packages.${prev.system}.default;
};
nixosModules.default = ./nix/module.nix;
};
}