os/lib/compat/nixos/default.nix
2021-04-18 20:51:47 -06:00

11 lines
231 B
Nix

{ ... }:
let
inherit (default.inputs.nixos) lib;
host = configs.${hostname} or configs.NixOS;
configs = default.nixosConfigurations;
default = (import ../.).defaultNix;
hostname = lib.fileContents /etc/hostname;
in
host