mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-27 07:44:58 +08:00
29 lines
729 B
Nix
29 lines
729 B
Nix
# My Linux VM running on macOS
|
|
{ flake, modulesPath, ... }: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
flake.inputs.disko.nixosModules.disko
|
|
];
|
|
system.stateVersion = "23.11";
|
|
services.openssh.enable = true;
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
binfmt.emulatedSystems = [ "x86_64-linux" ]; # For cross-compiling
|
|
swraid.mdadmConf = ''
|
|
MAILADDR srid@srid.ca
|
|
'';
|
|
};
|
|
nixpkgs.hostPlatform = "aarch64-linux";
|
|
|
|
hardware.parallels.enable = true;
|
|
|
|
networking = {
|
|
hostName = "here";
|
|
networkmanager.enable = true;
|
|
};
|
|
time.timeZone = "America/New_York";
|
|
disko.devices = import ./disko/vm.nix;
|
|
}
|