17 lines
423 B
Nix
17 lines
423 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
# hint: use 'echo -n' so there is no newline char in the hostName file
|
|
cfgPath = (builtins.toPath ("/etc/nixos/machines/" + (builtins.readFile /secret/hostName) + "/configuration.nix"));
|
|
in rec {
|
|
imports = [
|
|
cfgPath
|
|
./config/default.nix # same problem as above
|
|
./pkgs/nixpkgs.nix
|
|
./pkgs/pkgsets.nix
|
|
./services/default.nix # same problem as above
|
|
];
|
|
}
|