2
0
Fork 0

Add nixosModules to flake

This commit is contained in:
Ehmry - 2020-12-10 20:23:53 +01:00
parent 90cb9383de
commit 07a1e2e574
2 changed files with 30 additions and 0 deletions

View File

@ -131,6 +131,10 @@
packages = self.packages.${system};
});
nixosModules =
# Modules for composing Genode and NixOS
import ./nixos-modules { flake = self; };
checks =
# Checks for continous testing
let tests = import ./tests;

26
nixos-modules/default.nix Normal file
View File

@ -0,0 +1,26 @@
{ flake }:
let
baseModules = [
./genode-core.nix
./genode-init.nix
./gui
./hardware.nix
./qemu-vm.nix
./systemd.nix
];
in {
x86_64 = {
imports = baseModules;
nixpkgs = rec {
localSystem = "x86_64-linux";
crossSystem = "x86_64-genode";
system = localSystem + "-" + crossSystem;
pkgs = flake.legacyPackages.${system};
};
};
nova = import ./nova.nix;
}