simplify as per nix linter
This commit is contained in:
parent
f76e2e42fe
commit
0babda6eb5
2 changed files with 2 additions and 2 deletions
2
lib.nix
2
lib.nix
|
@ -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"}>";
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue