network/flake.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-05 20:05:50 +01:00
{
description = "Zentralwerk network";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
2021-03-19 23:00:15 +01:00
zentralwerk-network-key.url = "https://gitea.c3d2.de/zentralwerk/network.git?dir=nix/key";
zentralwerk-network-key.flake = false;
2021-03-05 20:05:50 +01:00
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
systems = [ system ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
rec {
2021-03-19 01:41:12 +01:00
lib =
import ./nix/lib { inherit nixpkgs; };
2021-03-05 20:05:50 +01:00
packages = forAllSystems (system:
import ./nix/pkgs { inherit self nixpkgs system; }
);
2021-03-05 20:05:50 +01:00
nixosModule = { ... }: {
2021-03-19 22:55:48 +01:00
imports = [ ./nix/nixos-module ];
2021-03-05 20:05:50 +01:00
};
nixosConfigurations.test_vm =
nixpkgs.lib.nixosSystem {
inherit system;
modules = [ nixosModule ];
extraModules = [ ({ ... }: {
networking.hostName = "test_vm";
}) ];
};
nixosConfigurations.server1 =
nixpkgs.lib.nixosSystem {
inherit system;
modules = [];
};
};
}