hosts/daiyousei: init. auto hostnames. profiles/cross.

This commit is contained in:
kat witch 2021-09-02 05:19:04 +01:00
parent d2a823f5bc
commit 3e52c7648a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
22 changed files with 479 additions and 23 deletions

View file

@ -31,7 +31,12 @@ with lib;
config = {
nixpkgs = {
system = mkDefault pkgs.system;
pkgs = mkDefault pkgs;
pkgs = let
pkgsReval = import pkgs.path {
inherit (config.nixpkgs) localSystem crossSystem;
inherit (pkgs) overlays config;
};
in mkDefault (if config.nixpkgs.config == pkgs.config && config.nixpkgs.localSystem.system == pkgs.targetPlatform.system then pkgs else pkgsReval);
};
};
};