Skip to content

Commit

Permalink
Remove alias usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 8, 2024
1 parent 9312244 commit 22f4a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nixos-modules/microvm/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"9p"
"virtiofs"
] ++ lib.optionals (
pkgs.targetPlatform.system == "x86_64-linux" &&
pkgs.stdenv.targetPlatform.system == "x86_64-linux" &&
config.microvm.hypervisor == "firecracker"
) [
# Keyboard controller that can receive CtrlAltDel
Expand Down
4 changes: 2 additions & 2 deletions pkgs/build-microvm.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Builds a MicroVM from a flake but takes the hypervisor from the
# local pkgs not from the target flake.
{ self
, lib, targetPlatform
, lib, stdenv
, writeShellScriptBin
, coreutils, git, nix
}:
Expand All @@ -23,7 +23,7 @@ writeShellScriptBin "build-microvm" ''
# --impure so that we can getFlake /nix/store/...
exec nix build "''${ARGS[@]}" --impure --expr "let
self = builtins.getFlake \"${self}\";
pkgs = self.inputs.nixpkgs.legacyPackages.${targetPlatform.system};
pkgs = self.inputs.nixpkgs.legacyPackages.${stdenv.targetPlatform.system};
flake = builtins.getFlake \"$FLAKE\";
# The imported NixOS system
original = flake.nixosConfigurations.\"$NAME\";
Expand Down

0 comments on commit 22f4a55

Please sign in to comment.