factor out nix config from nixos config