Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions projects/Ethersync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
};
};
Expand Down
4 changes: 4 additions & 0 deletions projects/Ethersync/programs/ethersync/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ in

config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];

demo-shell.ethersync.programs = {
ethersync = cfg.package;
};
};
}
4 changes: 1 addition & 3 deletions projects/Ethersync/programs/ethersync/tests/basic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
{
name = "Ethersync";

interactive.sshBackdoor.enable = true;
Comment thread
eljamm marked this conversation as resolved.

nodes =
let
config = {
imports = [
sources.modules.ngipkgs
sources.modules.programs.ethersync
sources.examples.Ethersync.basic
sources.examples.Ethersync.demo-shell
];
services.getty.autologinUser = "root";
};
Expand Down