simplify as per nix linter

This commit is contained in:
Kiara Grouwstra 2025-05-28 22:56:26 +02:00
parent f76e2e42fe
commit 0babda6eb5
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ pkgs, nix_templater }: { pkgs, nix_templater }:
rec { {
# placeholder to be substituted with the content of a secret file # placeholder to be substituted with the content of a secret file
fileContents = file: { fileContents = file: {
outPath = "<${builtins.placeholder "nix_template"}${toString file}${builtins.placeholder "nix_template"}>"; outPath = "<${builtins.placeholder "nix_template"}${toString file}${builtins.placeholder "nix_template"}>";

View file

@ -8,7 +8,7 @@ in (nixpkgs.lib.nixos.runTest {
hostPkgs = nixpkgs.legacyPackages.${system}; hostPkgs = nixpkgs.legacyPackages.${system};
name = "nix_templates"; name = "nix_templates";
nodes.machine = {config, pkgs, ...}: { nodes.machine = {pkgs, ...}: {
config = { config = {
systemd.services.testservice = { systemd.services.testservice = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];