1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-12-23 10:19:52 +01:00

add ci.nix

This commit is contained in:
lassulus 2018-09-29 23:17:22 +02:00
parent 4dbef48565
commit b81d2468b9

24
ci.nix Normal file
View file

@ -0,0 +1,24 @@
let
krops = ./.;
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = lib.evalSource [{
nixos-config.file = toString (pkgs.writeText "nixos-config" ''
{ pkgs, ... }: {
fileSystems."/" = { device = "/dev/sda1"; };
boot.loader.systemd-boot.enable = true;
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
}
'');
}];
in {
test = pkgs.krops.writeTest "test" {
force = true;
source = source;
target = "${lib.getEnv "HOME"}/krops-test";
};
}