/* My Linux VM running on macOS ## Using Parallels to create a NixOS VM - Boot into a NixOS graphical installer - Open terminal, and set a root password using `sudo su -` and `passwd root` - Authorize yourself to login to the root user using `ssh-copy-id -o PreferredAuthentications=password root@linux-builder` - Run nixos-anywhere (see justfile; `j remote-deploy`) */ { flake, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ./hardware-configuration.nix ../../../nixos/self/primary-as-admin.nix ../../../nixos/server/harden/basics.nix ../../../nixos/current-location.nix ../../../nixos/parallels-vm.nix # Dev ./dev.nix ]; # Basics system.stateVersion = "23.11"; boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; swraid.mdadmConf = '' MAILADDR srid@srid.ca ''; }; networking = { hostName = "parallels-linux-builder"; }; # Distributed Builder nixpkgs.hostPlatform = "aarch64-linux"; boot.binfmt.emulatedSystems = [ "x86_64-linux" ]; # For cross-compiling services.openssh.enable = true; users.users.${flake.config.people.myself}.openssh.authorizedKeys.keys = [ # macos /etc/ssh/ssh_host_ed25519_key.pub "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICra+ZidiwrHGjcGnyqPvHcZDvnGivbLMayDyecPYDh0" ]; }