From 91b343150a4e43728defd4742dd65e062af7337f Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 23 May 2023 09:35:36 +0200 Subject: [PATCH] templates/top/checks: use epnixConfig and EPNix NixOS integration --- templates/top/checks/simple.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/templates/top/checks/simple.nix b/templates/top/checks/simple.nix index 5b2bb9fc..54a5948d 100644 --- a/templates/top/checks/simple.nix +++ b/templates/top/checks/simple.nix @@ -1,22 +1,21 @@ { - build, + epnix, + # Your EPNix configuration, as defined in flake.nix + epnixConfig, pkgs, ... }: pkgs.nixosTest { name = "simple"; - nodes.machine = { + nodes.machine = {config, ...}: { + imports = [ + epnix.nixosModules.ioc + epnixConfig + ]; environment.systemPackages = [pkgs.epnix.epics-base]; - systemd.services.ioc = { - wantedBy = ["multi-user.target"]; - serviceConfig = { - ExecStart = "${build}/iocBoot/iocexample/st.cmd"; - WorkingDirectory = "${build}/iocBoot/iocexample"; - StandardInputText = "epicsThreadSleep(100)"; - }; - }; + systemd.services.ioc = config.epnix.nixos.services.ioc.config; }; testScript = ''