workstream update and foundation for flake
This commit is contained in:
1 parent
bdccace271
commit
46b4f5ac0b
13 files changed
+293
-25
No files matched your search
@@ -0,0 +1,32 @@
|
||||
{
|
||||
description = "skyg-linux-tracker: read-only systemd, journal and Docker monitor";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forAll = f: nixpkgs.lib.genAttrs systems (s: f nixpkgs.legacyPackages.${s});
|
||||
in
|
||||
{
|
||||
packages = forAll (pkgs: rec {
|
||||
skyg-linux-tracker = pkgs.callPackage ./nix/package.nix { };
|
||||
default = skyg-linux-tracker;
|
||||
});
|
||||
|
||||
nixosModules.default = { pkgs, lib, ... }: {
|
||||
imports = [ ./nix/module.nix ];
|
||||
services.skyg-linux-tracker.package =
|
||||
lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
};
|
||||
|
||||
checks.${system} = {
|
||||
package = self.packages.${system}.default;
|
||||
vm = import ./nix/tests/vm.nix {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
module = self.nixosModules.default;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user