Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f21690377d | ||
|
|
4681e17130 | ||
|
|
c6f246a74a |
@@ -55,3 +55,4 @@ The module (`nixos-module/default.nix`, `config.services.hortusfox-web`) wires H
|
||||
|
||||
- `nix flake check` passes cleanly for all outputs (`packages`, `checks.build`, `checks.vm-test`, `checks.vm-test-caddy`, `overlays`, `nixosModules`, `nixosConfigurations.test`), and the VM actually serves a working, loggable-into site end-to-end for both proxy backends (verified via the automated `vm-test`s and by booting `nixosConfigurations.test` manually and logging in over HTTP with `tests/hortusfox_web_test_password`). Note `tests/default.nix` carries a `fileSystems."/"`/`boot.loader.grub.devices`/`security.acme` stanza purely so `config.system.build.toplevel` (what `nix flake check` builds) evaluates — the VM is actually built and run via `.config.system.build.vm` (see `justfile`'s `build-vm`/`boot-vm`), which doesn't use any of that.
|
||||
- Upstream's own templates still emit a `PHP Deprecated: htmlspecialchars(): Passing null to parameter #1` notice on some pages (PHP 8.1+ deprecation for `htmlspecialchars(null)`). Harmless and not something this repo can fix — it's app code, not packaging.
|
||||
- `flake.nix.bk` is a stale, syntactically-broken (extra paren) prior draft of `flake.nix`, kept around for reference; it's not a flake input and isn't loaded by anything.
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
{
|
||||
description = "HortusFox — self-hosted plant manager, from source";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
overlayList = [ self.overlays.default ];
|
||||
|
||||
pkgsBySystem = forEachSystem (
|
||||
system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = overlayList;
|
||||
}
|
||||
);
|
||||
|
||||
in {
|
||||
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./tests ];
|
||||
});
|
||||
|
||||
overlays.default = final: prev: { hortusfox-web = final.callPackage ./package.nix { }; };
|
||||
|
||||
packages = {
|
||||
hortusfox-web = pkgs.${system}.hortusfox-web;
|
||||
default = pkgs.${system}.hortusfox-web;
|
||||
};
|
||||
|
||||
nixosModules.default = import ./nixos-module { overlays = overlayList; };
|
||||
|
||||
# Handy for `nix flake check` on a throwaway host
|
||||
checks = forEachSystem (system: {
|
||||
build = pkgsBySystem.${system}.hortusfox-web;
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user