mob next [ci-skip] [ci skip] [skip ci]
lastFile:machines/stellio/configuration.nix
This commit is contained in:
@@ -2,11 +2,20 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.matthew-hardware.nixosModules.mt7986a-glinet-gl-mt6000
|
inputs.matthew-hardware.nixosModules.mt7986a-glinet-gl-mt6000
|
||||||
|
|
||||||
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.mt7986a-glinet-gl-mt6000.enable = true;
|
hardware.mt7986a-glinet-gl-mt6000.enable = true;
|
||||||
hardware.mt7986a-glinet-gl-mt6000.zealous = true;
|
hardware.mt7986a-glinet-gl-mt6000.zealous = true;
|
||||||
hardware.mt7986a-glinet-gl-mt6000.image.repart.enable = true;
|
hardware.mt7986a-glinet-gl-mt6000.image.repart.enable = true;
|
||||||
|
|
||||||
|
image.modules.sd-card = {
|
||||||
|
disabledModules = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform.system = "aarch64-linux";
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
||||||
nixpkgs.buildPlatform.system = "x86_64-linux";
|
nixpkgs.buildPlatform.system = "x86_64-linux";
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
|
disko = {
|
||||||
|
imageBuilder = {
|
||||||
|
# Avoid double emulation to significantly speed up image building process.
|
||||||
|
# Update the system according to your host system.
|
||||||
|
# See https://github.com/nix-community/disko/issues/856
|
||||||
|
qemu =
|
||||||
|
inputs.nixpkgs.legacyPackages.x86_64-linux.qemu
|
||||||
|
+ "/bin/qemu-system-aarch64 -M virt -cpu cortex-a57";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user