aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-09-29 23:17:22 +0200
committerlassulus <lassulus@lassul.us>2018-09-29 23:17:22 +0200
commitb81d2468b9ace1c7d91b1067d0986b3328c96728 (patch)
treec1c17e5b8fe01f91b91cfe26ed265b6a93cec2b5
parent4dbef48565b4fe695b549d6df8c6b249d18845f6 (diff)
add ci.nixprism/ci
-rw-r--r--ci.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/ci.nix b/ci.nix
new file mode 100644
index 0000000..30ba7a9
--- /dev/null
+++ b/ci.nix
@@ -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";
+ };
+}