diff options
-rw-r--r-- | ci.nix | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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"; + }; +} |