~ehmry/sigil

190531e2ee55e4f0a6a2f4810c2ba97296cfc4de — Emery Hemingway 3 years ago 0d0d649 boot-usb
Add nixosModules to flake
2 files changed, 24 insertions(+), 0 deletions(-)

M flake.nix
A nixos-modules/default.nix
M flake.nix => flake.nix +4 -0
@@ 131,6 131,10 @@
            packages = self.packages.${system};
          });

      nixosModules =
        # Modules for composing Genode and NixOS
        import ./nixos-modules { inherit self; };

      checks =
        # Checks for continous testing
        let tests = import ./tests;

A nixos-modules/default.nix => nixos-modules/default.nix +20 -0
@@ 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 = ./nova.nix;

}