Something went wrong. Try again.
Something went wrong. Try again.
knotserver-module flake.nix
822 B · 27 lines
Nix
at knot-fix
12345678910111213141516171819202122232425262728{ description = "read if cute";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # needed for easy overriding... and tests tangledCore = { url = "git+https://tangled.sh/@tangled.sh/core";
inputs = { # upstream pinned stuff like git repos not included because lockfile already stores rev nixpkgs.follows = "nixpkgs"; }; }; };
outputs = { self, tangledCore, nixpkgs }: let lib = nixpkgs.lib; testedSystems = ["x86_64-linux" "aarch64-linux"]; forAllSystems = fn: lib.genAttrs testedSystems (system: fn nixpkgs.legacyPackages.${system}); in { nixosModules.default = import ./module.nix tangledCore;
checks = forAllSystems (pkgs: { default = pkgs.callPackage ./test.nix { module = self.nixosModules.default; }; }); };}