Skip to content

Nix Configurations for various MacOS and NixOS hosts

License

Notifications You must be signed in to change notification settings

ashkan-leo/machines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Machines

Table of Contents

Instructions

Currently, there is a bootstrap script for Mac OS** Mac OS

Installation

  1. Clone this repository to a directory of your choice. I usually clone it in $xdg_config_home/nixpkgs.
  2. Ensure there exist a flake for the current host and username (check out flake.nix for the complete list). If setting up a new host, check out Define a new host section.
  3. cd to the repo directory and run:
    bin/yo-mac-installer install $HOST
        
  4. You may need to reboot the system – specially if skhd is not working.

Uninstallation

To uninstall nix simply run:

bin/yo-mac-installer uninstall

Note this will not remove the nix configuration files.

Hosts

HostOSNotes
zebraDarwinX86_64
chi-aaleali-MacDarwinX86_64
dolphinDarwinaarch64
titanLinuxx86_64

Define a new host

  1. Create a new directory with the machine’s host name in modules/hosts/HOST_NAME and copy configuration.nix and home.nix from some other host directory to the newly created one. Then, modify the configuration files per liking.
  2. Add the newly created files to git. There is no need to commit the changes at this point. Nix-flake uses git as the underlying file system.
  3. Create a new flake entry in flake.nix pointing to the newly added host.

About

Nix Configurations for various MacOS and NixOS hosts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published