Replaced 'builtins.readFile' with 'lib.fileContents'.
This commit is contained in:
parent
a3929a8ec5
commit
097981466e
4 changed files with 5 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue