From 4f200320f358b678a6993866128c579061137b21 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 27 May 2021 20:28:28 +0200 Subject: flake.nix: add some hydra jobs --- flake.nix | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/flake.nix b/flake.nix index 2c43606..a98ec43 100644 --- a/flake.nix +++ b/flake.nix @@ -110,9 +110,63 @@ modules = [ self.nixosModules.test self.nixosModules.profiles.server + { + # SMARTD doesn't work in QEMU + services.smartd.enable = false; + } ]; }; }; + hydraJobs = let + testing = import (nixpkgs + "/nixos/lib/testing-python.nix") { system = "x86_64-linux"; }; + in { + + tests.testDefault = testing.simpleTest { + machine = self.nixosModules.test; + testScript = '' + # TODO + ''; + }; + + tests.testPlainDesktop = testing.simpleTest { + machine = { ... }: { + imports = [ + self.nixosModules.test + self.nixosModules.profiles.desktop + ]; + }; + testScript = '' + # TODO + ''; + }; + + tests.testDevDesktop = testing.simpleTest { + machine = { ... }: { + imports = [ + self.nixosModules.test + self.nixosModules.profiles.desktop + self.nixosModules.usecases.desktop.development + ]; + }; + testScript = '' + # TODO + ''; + }; + + tests.testServer = testing.simpleTest { + machine = { ... }: { + imports = [ + self.nixosModules.test + self.nixosModules.profiles.server + ]; + }; + testScript = '' + # TODO + ''; + }; + + }; + }; } -- cgit v1.2.3