feat: pykms NixOS container #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/pykms-container"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pykms NixOS container op roeland
Vervangt de oude Debian KMS server.
192.168.100.33/mnt/BFD/volumes/pykms/data(SSD, persistent)services.pykmsmodule — die DynamicUser/StateDirectory botst met bind mount)Na deploy: router port-forward aanpassen van 1688 naar 45291
- Use perSystem pattern + inputs.nixpkgs-unstable for the package definition (flake-parts convention), fixing the undefined 'pkgs' error - Reference pykms via self.packages.${system} in the container's systemd service ExecStart instead of pkgs.unstable.pykms, because the container's pkgs doesn't have the 'unstable' overlayThe previous change to use inputs.nixpkgs-unstable.legacyPackages..pykms broke packages.x86_64-linux evaluation. Reverting to the proven perSystem pattern {pkgs, ...}: { packages.pykms = pkgs.unstable.pykms; } which is what master uses.✅ Fix pushed (
32dd0e5)Probleem: 2 CI checks faalden:
packages.x86_64-linux.pykms— evaluation failednixosConfigurations.roeland— evaluation failed (cascaded)Oorzaak:
pkgs.unstableis alleen beschikbaar in de NixOS module overlay context, niet inperSystem(flake-parts). De package definitie inmodules/packages/pykms.nixgebruiktepkgs.unstable.pykms.Fix: Gewijzigd naar
inputs.nixpkgs-unstable.legacyPackages.${system}.pykms— directe flake input reference i.p.v.pkgs.unstable.Lokaal geverifieerd:
.#packages.x86_64-linux.pykmsevalueert naarpykms-0-unstable-2024-07-06.#nixosConfigurations.roeland.config.system.build.toplevelevalueert succesvolWachtend op Argunix her-evaluatie via PR synchronized webhook...
Use inputs.nixpkgs-unstable.legacyPackages.${system}.pykms instead of pkgs.unstable.pykms, which only exists in the NixOS module overlay context. Fixes: packages.x86_64-linux.pykms evaluation failure Fixes: nixosConfigurations.roeland evaluation failure (cascaded)Pull request closed