2
0
複製 0

Add nixosModules to flake

This commit is contained in:
Ehmry - 2020-12-10 20:23:53 +01:00
父節點 f5e48f70e2
當前提交 51a68d1e91
共有 2 個文件被更改,包括 24 次插入0 次删除

查看文件

@ -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;

20
nixos-modules/default.nix Normal file
查看文件

@ -0,0 +1,20 @@
{ flake }:
let
baseModules =
[ ./genode-core.nix ./genode-init.nix ./gui ./hardware.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;
}