{"id":21680098,"url":"https://github.com/matthisk/nix","last_synced_at":"2026-05-18T17:42:37.253Z","repository":{"id":225172410,"uuid":"759458636","full_name":"matthisk/nix","owner":"matthisk","description":"My Nix configuration","archived":false,"fork":false,"pushed_at":"2024-07-23T14:50:56.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T11:08:00.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","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/matthisk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T16:46:22.000Z","updated_at":"2024-07-23T14:50:59.000Z","dependencies_parsed_at":"2024-04-04T15:34:43.152Z","dependency_job_id":null,"html_url":"https://github.com/matthisk/nix","commit_stats":null,"previous_names":["matthisk/nix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthisk%2Fnix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthisk%2Fnix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthisk%2Fnix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthisk%2Fnix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthisk","download_url":"https://codeload.github.com/matthisk/nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244594040,"owners_count":20478182,"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-25T15:14:34.805Z","updated_at":"2026-05-18T17:42:32.217Z","avatar_url":"https://github.com/matthisk.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My personal Nix configuration\n\nThis repository contains my personal Nix configuration. It currently supports\nNix Darwin to setup an OS X machine and Nixos to setup a aarch64 Linux VM. It is\nloosely based on Mitchell Hashimoto's Nix config, but will probably diverge overtime.\n\n## Setup guide VM\n\nYou can download the NixOS ISO from the official [NixOS download page](https://nixos.org/download/).\nYou can use the minimal ISO image for the setup.\n\nCreate a VMware Fusion VM with the following settings. My configurations are made for VMware Fusion exclusively currently and you will have issues on other virtualization solutions without minor changes.\n\n* ISO: NixOS 23.05 or later.\n* Disk: SATA 150 GB+\n* CPU/Memory: I give at least half my cores and half my RAM, as much as you can.\n* Graphics: Full acceleration, full resolution, maximum graphics RAM.\n* Network: Shared with my Mac.\n* Remove sound card, remove video camera, remove printer.\n* Profile: Disable almost all keybindings\n* Boot Mode: UEFI\n\nOn VMWare Workstation on Windows make sure you are in the UEFI build mode. On my workstation the setup defaulted to BIOS. To update to UEFI add the following line to the VM's vmx file:\n\n```\nfirmare = \"efi\"\n```\n\nBoot the VM, and using the graphical console, change the root password to \"root\":\n\n```\n$ sudo su\n$ passwd\n# change to root\n```\n\nAt this point, verify `/dev/sda` exists. This is the expected block device where the Makefile will install the OS. If you setup your VM to use SATA, this should exist. If `/dev/nvme` or `/dev/vda` exists instead, you didn't configure the disk properly. Note, these other block device types work fine, but you'll have to modify the bootstrap0 Makefile task to use the proper block device paths.\n\nAlso at this point, I recommend making a snapshot in case anything goes wrong. I usually call this snapshot `\"prebootstrap0\"`. This is entirely optional, but it'll make it super easy to go back and retry if things go wrong.\n\nRun ifconfig and get the IP address of the first device. It is probably 192.168.58.XXX, but it can be anything. In a terminal with this repository set this to the NIXADDR env var:\n\n```\n$ export NIXADDR=\u003cVM ip address\u003e\n```\n\nThe Makefile assumes an Intel processor by default. If you are using an ARM-based processor (M1, etc.), you must change NIXNAME so that the ARM-based configuration is used:\n\n```\n$ export NIXNAME=vm-aarch64\n```\n\nPerform the initial bootstrap. This will install NixOS on the VM disk image but will not setup any other configurations yet. This prepares the VM for any NixOS customization:\n\n```\n$ make vm/bootstrap0\n```\n\nAfter the VM reboots, run the full bootstrap, this will finalize the NixOS customization using this configuration:\n\n```\n$ make vm/bootstrap\n```\n\nYou should have a graphical functioning dev VM.\n\nAt this point, I never use Mac terminals ever again. I clone this repository in my VM and I use the other Make tasks such as make test, make switch, etc. to make changes my VM.\n\n## Setup guide OS X\n\nBefore using; install Nix Darwin. I use the [nix-installer](https://github.com/DeterminateSystems/nix-installer) from Determinate Systems.\n\nOnce installed, clone this repo and run `make`. If there are any errors, follow the error message (some folders may need permissions changed, some files may need to be deleted). That's it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthisk%2Fnix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthisk%2Fnix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthisk%2Fnix/lists"}