mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Remove aliases
This commit is contained in:
parent
5d88ff2519
commit
315b321fe7
1 changed files with 5 additions and 5 deletions
10
flake.nix
10
flake.nix
|
|
@ -77,11 +77,11 @@
|
|||
# deprecated:
|
||||
, config ? null
|
||||
, extraModules ? null
|
||||
, system ? null # pkgs.system is used to detect user's arch
|
||||
, system ? null # pkgs.stdenv.system is used to detect user's arch
|
||||
}:
|
||||
if ! (builtins.elem pkgs.system [ "aarch64-linux" "x86_64-linux" ]) then
|
||||
if ! (builtins.elem pkgs.stdenv.system [ "aarch64-linux" "x86_64-linux" ]) then
|
||||
throw
|
||||
("${pkgs.system} is not supported; aarch64-linux / x86_64-linux " +
|
||||
("${pkgs.stdenv.system} is not supported; aarch64-linux / x86_64-linux " +
|
||||
"are the only currently supported system types")
|
||||
else
|
||||
pkgs.lib.throwIf
|
||||
|
|
@ -95,12 +95,12 @@
|
|||
|
||||
have been removed.
|
||||
Instead of 'extraModules' use the argument 'modules'.
|
||||
The 'system' will be inferred by 'pkgs.system',
|
||||
The 'system' will be inferred by 'pkgs.stdenv.system',
|
||||
so pass a 'pkgs = import nixpkgs { system = "aarch64-linux"; };'
|
||||
See the 22.11 release notes for more.
|
||||
''
|
||||
(import ./modules {
|
||||
targetSystem = pkgs.system; # system to cross-compile to
|
||||
targetSystem = pkgs.stdenv.system; # system to cross-compile to
|
||||
inherit extraSpecialArgs home-manager-path pkgs;
|
||||
config.imports = modules;
|
||||
isFlake = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue