triviOS/flake.nix

27 lines
617 B
Nix
Raw Permalink Normal View History

2023-09-05 05:17:46 +02:00
{
2023-09-13 21:26:07 +02:00
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
2023-09-05 05:17:46 +02:00
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
crossSystem = "aarch64-linux";
2023-09-13 21:26:07 +02:00
2023-09-05 05:17:46 +02:00
pkgs = import nixpkgs {
inherit system;
2023-09-13 21:26:07 +02:00
crossSystem = import ./triviOS/cross.nix;
overlays = [ (import ./triviOS/overlay.nix) ];
2023-09-05 05:17:46 +02:00
};
in
{
2023-09-13 21:26:07 +02:00
formatter.${system} = pkgs.pkgsBuildBuild.nixpkgs-fmt;
2023-09-05 05:17:46 +02:00
nixosConfigurations.triviOS = nixpkgs.lib.nixosSystem {
2023-09-05 08:36:33 +02:00
inherit pkgs;
2023-09-05 05:17:46 +02:00
system = crossSystem;
modules = [ ./triviOS ];
};
2023-09-13 21:26:07 +02:00
packages.${crossSystem} = pkgs;
2023-09-05 05:17:46 +02:00
};
}