{"id":21067355,"url":"https://github.com/zefhemel/nixops-mac-setup","last_synced_at":"2025-05-16T03:32:16.851Z","repository":{"id":8662856,"uuid":"10317838","full_name":"zefhemel/nixops-mac-setup","owner":"zefhemel","description":"Script to easily setup Nix and NixOps for use on Mac","archived":false,"fork":false,"pushed_at":"2015-05-19T07:19:33.000Z","size":195,"stargazers_count":22,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-04-13T21:31:17.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zefhemel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-27T15:50:38.000Z","updated_at":"2022-06-22T02:51:02.000Z","dependencies_parsed_at":"2022-09-09T04:00:47.931Z","dependency_job_id":null,"html_url":"https://github.com/zefhemel/nixops-mac-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefhemel%2Fnixops-mac-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefhemel%2Fnixops-mac-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefhemel%2Fnixops-mac-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefhemel%2Fnixops-mac-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zefhemel","download_url":"https://codeload.github.com/zefhemel/nixops-mac-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225402688,"owners_count":17468837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T18:06:36.068Z","updated_at":"2024-11-19T18:06:36.800Z","avatar_url":"https://github.com/zefhemel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple one-off script to download and install Nix and NixOps and make it to prepare it for deployments on Mac.\nInspired by [these instructions](http://functional-orbitz.blogspot.se/2013/05/setting-up-nixops-on-mac-os-x-with.html).\n\nProcedure\n---------\nThe script executes the following steps:\n\n1. Create a disk image with a case-sensitive file system and mount it at `/nix`.\n2. Install Nix and append environment variable setup to `~/.profile`\n5. Install NixOps\n\nRequirements\n------------\n* No Nix installed yet, clean system (Nix-wise)\n* XCode command line tools installed (make, gcc etc.)\n* Virtualbox (for deployments to VirtualBox)\n* Git installed: http://git-scm.com/download/mac\n\nUse\n----\n\nFirst, configure VirtualBox ([source](http://functional-orbitz.blogspot.se/2013/05/setting-up-nixops-on-mac-os-x-with.html)):\n\n* Start VirtualBox.\n* Go to preferences (Cmd-,).\n* Click on Network.\n* If vboxnet0 is not present, add it by clicking the green +.\n* Edit vboxnet0 and make sure DHCP Server is turned on. The settings I use are below.\n  * Server Address: 192.168.56.100\n  * Server Mask: 255.255.255.0\n  * Lower Address Bound: 192.168.56.101\n  * Upper Address Bound: 192.168.56.254\n\nThen, check out this repository in a terminal and run the install script:\n\n    git clone git://github.com/zefhemel/nixos-mac-setup.git\n    cd nixos-mac-setup\n    ./install.sh\n\nTo test:\n\n    nixops create test/trivial.nix test/trivial-vbox.nix --name test\n    nixops deploy -d test\n\nAfter you reboot the `NixStore.dmg` will not automatically be remounted to mount it again, run `./attach-disk.sh` again.\n\nResizing NixStore.dmg\n---------------------\n\nBy default the NixStore.dmg file is 10G which should be enough for a while, if you want resize it, play with these commands:\n\n    hdiutil detach /nix\n    hdiutil resize -size 50g NixStore.dmg\n    hdiutil attach NixStore.dmg -mountpoint /nix\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefhemel%2Fnixops-mac-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzefhemel%2Fnixops-mac-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefhemel%2Fnixops-mac-setup/lists"}