From 0babda6eb511751b3a45c7403d97045cf0ecfb1a Mon Sep 17 00:00:00 2001 From: cinereal Date: Wed, 28 May 2025 22:56:26 +0200 Subject: [PATCH] simplify as per nix linter --- lib.nix | 2 +- tests/template.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.nix b/lib.nix index 1d63182..16b1791 100644 --- a/lib.nix +++ b/lib.nix @@ -1,5 +1,5 @@ { pkgs, nix_templater }: -rec { +{ # placeholder to be substituted with the content of a secret file fileContents = file: { outPath = "<${builtins.placeholder "nix_template"}${toString file}${builtins.placeholder "nix_template"}>"; diff --git a/tests/template.nix b/tests/template.nix index 8c737b8..a72911c 100644 --- a/tests/template.nix +++ b/tests/template.nix @@ -8,7 +8,7 @@ in (nixpkgs.lib.nixos.runTest { hostPkgs = nixpkgs.legacyPackages.${system}; name = "nix_templates"; - nodes.machine = {config, pkgs, ...}: { + nodes.machine = {pkgs, ...}: { config = { systemd.services.testservice = { wantedBy = [ "multi-user.target" ];