Compare commits

...

4 Commits

Author SHA1 Message Date
Andreas Kohn 6cf56dd2d1
Use `ip` instead of `brctl` (#251)
This is the last item using `brctl`, and we can just as easily replace it with the equivalent `ip` incantation.
2025-04-17 19:28:40 +05:30
Paul S. 734b7c3542
Add flake.nix and direnv (#254) 2025-04-17 19:25:06 +05:30
Florian Heigl e1d26cb141
Change recommended release in fetch-macOS-v2.py (#257)
All releases past 10.5 are bloatware anyway, so there should be no harm changing the default.
2025-04-17 19:23:47 +05:30
Nicco Kunzmann 51fdc2e57b
Add 'lscpu' step in the documentation 2025-04-17 19:21:57 +05:30
7 changed files with 96 additions and 3 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_flake

2
.gitignore vendored
View File

@ -6,5 +6,7 @@
*.sha256sum
*.smd
*.sucatalog
*.chunklist
OVMF_VARS*.fd
OpenCore-Catalina/EFI/OC/Resources/
.direnv/

View File

@ -95,6 +95,7 @@ processors work just fine (even for macOS Sonoma).
```
To make this change permanent, you may use the following command.
Use `lscpu` if you are not sure.
```
sudo cp kvm.conf /etc/modprobe.d/kvm.conf # for intel boxes only

View File

@ -540,8 +540,8 @@ def main():
{"name": "Catalina (10.15)", "b": "Mac-00BE6ED71E35EB86", "m": "00000000000000000", "short": "catalina"},
{"name": "Big Sur (11.7)", "b": "Mac-2BD1B31983FE1663", "m": "00000000000000000", "short": "big-sur"},
{"name": "Monterey (12.6)", "b": "Mac-B809C3757DA9BB8D", "m": "00000000000000000", "os_type": "latest", "short": "monterey"},
{"name": "Ventura (13) - RECOMMENDED", "b": "Mac-4B682C642B45593E", "m": "00000000000000000", "os_type": "latest", "short": "ventura"},
{"name": "Sonoma (14) ", "b": "Mac-827FAC58A8FDFA22", "m": "00000000000000000", "short": "sonoma"},
{"name": "Ventura (13)", "b": "Mac-4B682C642B45593E", "m": "00000000000000000", "os_type": "latest", "short": "ventura"},
{"name": "Sonoma (14) - RECOMMENDED", "b": "Mac-827FAC58A8FDFA22", "m": "00000000000000000", "short": "sonoma"},
{"name": "Sequoia (15) ", "b": "Mac-7BA5B2D9E42DDD94", "m": "00000000000000000", "short": "sequoia", "os_type": "latest"},
]
for index, product in enumerate(products):

61
flake.lock Normal file
View File

@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1717179513,
"narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

28
flake.nix Normal file
View File

@ -0,0 +1,28 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/24.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
python3
dmg2img
qemu_kvm
];
};
}
);
}

View File

@ -61,7 +61,7 @@ sudo apt-get install uml-utilities virt-manager
sudo ip tuntap add dev tap0 mode tap
sudo ip link set tap0 up promisc on
sudo brctl addif virbr0 tap0
sudo ip link set dev tap0 master virbr0
sudo ip link set dev virbr0 up # as needed
sudo ip link set dev tap0 master virbr0