Replaced 'builtins.readFile' with 'lib.fileContents'.

This commit is contained in:
Kevin Baensch 2019-04-14 18:35:37 +02:00
parent a3929a8ec5
commit 097981466e
4 changed files with 5 additions and 6 deletions

View file

@ -2,9 +2,8 @@
with lib;
# hint: use 'echo -n' so there is no newline char in the hostName file
let
machinePath = (builtins.toPath ("/etc/nixos/machines/" + (builtins.readFile /secret/hostName)));
machinePath = (builtins.toPath ("/etc/nixos/machines/" + (fileContents /secret/hostName)));
machineConf = machinePath + "/configuration.nix";
machineOpts = machinePath + "/options.nix";
in {