diff --git a/projects/Ethersync/default.nix b/projects/Ethersync/default.nix index fe99348df..7eaed6ea9 100644 --- a/projects/Ethersync/default.nix +++ b/projects/Ethersync/default.nix @@ -26,10 +26,12 @@ ethersync = { name = "ethersync"; module = ./programs/ethersync/module.nix; - examples.basic = { - module = ./programs/ethersync/examples/basic.nix; - description = ""; - tests.basic = import ./programs/ethersync/tests/basic.nix args; + examples = { + demo-shell = { + module = ./programs/ethersync/examples/basic.nix; + description = ""; + tests.basic = import ./programs/ethersync/tests/basic.nix args; + }; }; }; }; diff --git a/projects/Ethersync/programs/ethersync/module.nix b/projects/Ethersync/programs/ethersync/module.nix index 1090bdb0f..a146cf157 100644 --- a/projects/Ethersync/programs/ethersync/module.nix +++ b/projects/Ethersync/programs/ethersync/module.nix @@ -15,5 +15,9 @@ in config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; + + demo-shell.ethersync.programs = { + ethersync = cfg.package; + }; }; } diff --git a/projects/Ethersync/programs/ethersync/tests/basic.nix b/projects/Ethersync/programs/ethersync/tests/basic.nix index 59f2b94c1..b4f95207f 100644 --- a/projects/Ethersync/programs/ethersync/tests/basic.nix +++ b/projects/Ethersync/programs/ethersync/tests/basic.nix @@ -13,15 +13,13 @@ { name = "Ethersync"; - interactive.sshBackdoor.enable = true; - nodes = let config = { imports = [ sources.modules.ngipkgs sources.modules.programs.ethersync - sources.examples.Ethersync.basic + sources.examples.Ethersync.demo-shell ]; services.getty.autologinUser = "root"; };