mirror of
https://cgit.krebsco.de/krops
synced 2024-11-10 13:19:46 +01:00
25 lines
592 B
Nix
25 lines
592 B
Nix
let
|
|
krops = ./.;
|
|
|
|
lib = import "${krops}/lib";
|
|
pkgs = import "${krops}/pkgs" {};
|
|
|
|
source = lib.evalSource [{
|
|
nixos-config.file = pkgs.writeText "nixos-config" ''
|
|
{ pkgs, ... }: {
|
|
|
|
fileSystems."/" = { device = "/dev/sda1"; };
|
|
boot.loader.systemd-boot.enable = true;
|
|
services.openssh.enable = true;
|
|
environment.systemPackages = [ pkgs.git ];
|
|
}
|
|
'';
|
|
nixpkgs.symlink = toString <nixpkgs>;
|
|
}];
|
|
in {
|
|
test = pkgs.krops.writeTest "test" {
|
|
force = true;
|
|
source = source;
|
|
target = "${lib.getEnv "HOME"}/krops-test";
|
|
};
|
|
}
|