flk/lib/compat/nixos/default.nix

11 lines
231 B
Nix
Raw Permalink Normal View History

2021-06-05 08:46:58 +00:00
{ ... }:
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