Skip to content
/ teien Public

my nixos enviroment, os set up in nix looks like a japanese garden(teien)

License

Notifications You must be signed in to change notification settings

gx14ac/teien

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS System Configurations

Here is my NixOS configuration file. almost all development is done in this environment.

Setup

$ make iso/nixos.iso

Boot the VM, and using the graphical console, change the root password to "root":

$ sudo su
$ passwd
# change to root

At this point, verify /dev/nvme0n1 exists. This is the expected block device where the Makefile will install the OS. If you setup your VM to use NVMe, this should exist. If /dev/sda or /dev/vda exists instead, you didn't configure NVMe properly. Note, these other block device types work fine, but you'll probably have to modify the bootstrap0 Makefile task to use the proper block device paths.

Run 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:

$ export NIXADDR=<VM ip address>

The 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:

$ export NIXNAME=vm-aarch64

Perform 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:

$ make vm/bootstrap0

After the VM reboots, run the full bootstrap, this will finalize the NixOS customization using this configuration:

$ make vm/bootstrap

You should have a graphical functioning dev VM.

At 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.

About

my nixos enviroment, os set up in nix looks like a japanese garden(teien)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published