nixos/configuration.nix

21 lines
498 B
Nix
Raw Normal View History

2019-02-26 13:44:40 +01:00
{ config, lib, pkgs, ... }:
with lib;
# hint: use 'echo -n' so there is no newline char in the hostName file
2019-02-26 13:44:40 +01:00
let
machinePath = (builtins.toPath ("/etc/nixos/machines/" + (builtins.readFile /secret/hostName)));
machineConf = machinePath + "/configuration.nix";
machineOpts = machinePath + "/options.nix";
in {
2019-02-26 13:44:40 +01:00
imports = [
machineConf
machineOpts
./config/default.nix
2019-02-26 13:44:40 +01:00
./pkgs/nixpkgs.nix
./pkgs/pkgsets.nix
./services/containers.nix
./services/default.nix
2019-02-26 13:44:40 +01:00
];
}