This commit is contained in:
shelvacu
2024-10-23 19:03:54 -07:00
parent 784f418cd0
commit 65cdbd2ce2

View File

@@ -96,11 +96,15 @@
...
}@inputs:
let
x86 = "x86_64-linux";
arm = "aarch64-linux";
lib = import "${nixpkgs}/lib";
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
mkPkgs = arg:
let
argAttr = if builtins.isString arg then { system = arg; } else arg;
config = { allowUnfree = true; } // (argAttr.config or {});
in import nixpkgs (argAttr // { inherit config; });
pkgs = mkPkgs x86;
mkNixosConfig =
{
unstable ? false,
@@ -189,21 +193,13 @@
;
};
};
pkgs = import nixpkgs { system = "aarch64-linux"; };
pkgs = mkPkgs arm;
};
# homeConfigurations."nix-on-droid" = home-manager.lib.homeManagerConfiguration {
# modules = [
# ./home/nix-on-droid.nix
# { _module.args.inputs = defaultInputs; }
# ];
# pkgs = import nixpkgs { system = "aarch64-linux"; };
# };
checks = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (
system:
let
pkgs = import nixpkgs { inherit system; };
pkgs = mkPkgs system;
config = {
node.pkgs = pkgs;
node.pkgsReadOnly = false;