nixos/configuration.nix
2019-04-18 07:40:47 +02:00

19 lines
419 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
machinePath = (builtins.toPath ( ./machines + ("/" + (fileContents /secret/hostName))));
machineConf = machinePath + "/configuration.nix";
machineOpts = machinePath + "/options.nix";
in {
imports = [
machineConf
machineOpts
./config/default.nix
./pkgs/nixpkgs.nix
./pkgs/pkgsets.nix
./services/containers.nix
./services/default.nix
];
}