mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
phone: Add virtual machine support for x86_64-linux
This makes it possible to test the phone config in a virtual machine on x86_64 machines.
This commit is contained in:
parent
4e18c839de
commit
8527ad719d
@ -10,11 +10,19 @@
|
||||
|
||||
outputs = { self, nixpkgs, mobile-nixos } @ attrs:
|
||||
{
|
||||
nixosConfigurations = {
|
||||
nixosConfigurations =
|
||||
let
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
mobile-nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
|
||||
modules = modules ++ [
|
||||
(import "${mobile-nixos}/lib/configuration.nix" {
|
||||
device = "pine64-pinephone";
|
||||
})
|
||||
@ -25,11 +33,15 @@
|
||||
splash = nixpkgs.lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
mobile-nixos-vm = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
|
||||
inherit modules;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user