From 52ac07299f2342afe0c309f3b8be3ea05c7549ff Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Dec 2024 13:58:02 -0800 Subject: refactor overall configuration The configuration of the various hosts and home-manager was becoming a bit complex for no valid reasons. Try to simplify this a bit. --- nix/machines/vm-aarch64.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nix/machines/vm-aarch64.nix (limited to 'nix/machines/vm-aarch64.nix') diff --git a/nix/machines/vm-aarch64.nix b/nix/machines/vm-aarch64.nix new file mode 100644 index 0000000..8e84ed5 --- /dev/null +++ b/nix/machines/vm-aarch64.nix @@ -0,0 +1,16 @@ +{ ... }: { + imports = [ ./hardware/vm-aarch64-utm.nix ./vm-shared.nix ]; + + # Interface is this on my M1 + networking.interfaces.enp0s10.useDHCP = true; + + # Qemu + services.spice-vdagentd.enable = true; + + # For now, we need this since hardware acceleration does not work. + environment.variables.LIBGL_ALWAYS_SOFTWARE = "1"; + + # Lots of stuff that uses aarch64 that claims doesn't work, but actually works. + nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnsupportedSystem = true; +} -- cgit 1.4.1