2019-02-26 13:44:40 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2019-03-17 11:43:14 +01:00
|
|
|
with lib;
|
|
|
|
|
2019-02-26 13:44:40 +01:00
|
|
|
let
|
2019-03-17 11:43:14 +01:00
|
|
|
# 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 {
|
2019-02-26 13:44:40 +01:00
|
|
|
imports = [
|
2019-03-17 11:43:14 +01:00
|
|
|
cfgPath
|
2019-03-20 02:57:59 +01:00
|
|
|
./config/default.nix # same problem as above
|
2019-02-26 13:44:40 +01:00
|
|
|
./pkgs/nixpkgs.nix
|
|
|
|
./pkgs/pkgsets.nix
|
2019-03-20 02:57:59 +01:00
|
|
|
./services/default.nix # same problem as above
|
2019-02-26 13:44:40 +01:00
|
|
|
];
|
|
|
|
}
|