19 lines
422 B
Nix
19 lines
422 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
machinePath = (builtins.toPath ("/etc/nixos/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
|
|
];
|
|
}
|