1
0
Fork 0
nixos/configuration.nix

17 lines
423 B
Nix
Raw Normal View History

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