macOS VM nix-shell

This commit is contained in:
2024-10-10 00:24:48 +01:00
parent 7914bca2db
commit a0c323da16
3 changed files with 19 additions and 29 deletions

29
.gitignore vendored
View File

@@ -2,33 +2,6 @@
*/*.DS_Store */*.DS_Store
.Trash .Trash
BrewFile.lock.json BrewFile.lock.json
switch.log
.vscode .vscode
*.tar.* /nix-shells/macos-vm/
*.tgz
*.o
*.so
*.out
*.bak
*.bk
*.tmp
*.temp
*.rej
*.orig
/programs/tabbed/tabbed
/programs/tabbed/xembed
/programs/blind/blind
/programs/dmenu/dmenu
/programs/dmenu/stest
/programs/dmenu/dmenu/stest
/programs/dwm/dwm
/programs/quark/quark
/programs/sent/sent
/programs/slock/slock
/programs/st/st
//programs/slstatus/slstatus
/programs/surf/surf
/programs/herbe/herbe
/programs/dwmblocks/dwmblocks

View File

@@ -21,5 +21,5 @@ This repository can be used as a base for your own dotfiles.
2. Run the install script: 2. Run the install script:
```sh ```sh
sh <(curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/refs/heads/main/install.sh) bash <(curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/refs/heads/main/install.sh)
``` ```

17
nix-shells/macos-vm.nix Normal file
View File

@@ -0,0 +1,17 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShellNoCC {
packages = with pkgs; [
quickemu
];
shellHook = ''
mkdir -p macos-vm
cd macos-vm
quickget macos ventura
quickemu --vm macos-ventura.conf
'';
}