1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-27 18:16:59 +03:00
digga/compat/nixos/default.nix

11 lines
231 B
Nix
Raw Normal View History

{ ... }:
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