diff --git a/machines/stellio/configuration.nix b/machines/stellio/configuration.nix index d7de2a5..5c1da2e 100644 --- a/machines/stellio/configuration.nix +++ b/machines/stellio/configuration.nix @@ -2,11 +2,20 @@ { imports = [ inputs.matthew-hardware.nixosModules.mt7986a-glinet-gl-mt6000 + + ./hardware-configuration.nix ]; + hardware.mt7986a-glinet-gl-mt6000.enable = true; hardware.mt7986a-glinet-gl-mt6000.zealous = true; hardware.mt7986a-glinet-gl-mt6000.image.repart.enable = true; + image.modules.sd-card = { + disabledModules = [ + ./hardware-configuration.nix + ]; + }; + nixpkgs.hostPlatform.system = "aarch64-linux"; nixpkgs.buildPlatform.system = "x86_64-linux"; diff --git a/machines/stellio/disko.nix b/machines/stellio/disko.nix new file mode 100644 index 0000000..b49ec89 --- /dev/null +++ b/machines/stellio/disko.nix @@ -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"; + }; + }; +} diff --git a/machines/stellio/hardware-configuration.nix b/machines/stellio/hardware-configuration.nix new file mode 100644 index 0000000..7c4203c --- /dev/null +++ b/machines/stellio/hardware-configuration.nix @@ -0,0 +1,6 @@ +{ + fileSystems."/" = { + device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; +}