1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-26 21:19:47 +01:00
krops/ci.nix

26 lines
592 B
Nix
Raw Normal View History

2018-09-29 23:17:22 +02:00
let
krops = ./.;
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = lib.evalSource [{
2021-10-26 13:05:49 +02:00
nixos-config.file = pkgs.writeText "nixos-config" ''
2018-09-29 23:17:22 +02:00
{ pkgs, ... }: {
fileSystems."/" = { device = "/dev/sda1"; };
boot.loader.systemd-boot.enable = true;
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
}
2021-10-26 13:05:49 +02:00
'';
2018-12-13 10:15:40 +01:00
nixpkgs.symlink = toString <nixpkgs>;
2018-09-29 23:17:22 +02:00
}];
in {
test = pkgs.krops.writeTest "test" {
force = true;
source = source;
target = "${lib.getEnv "HOME"}/krops-test";
};
}