Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shzhng/nix-config
❄️ Personal Nix config files for my development machines & VMs
https://github.com/shzhng/nix-config
dotfiles home-manager macos nix nix-darwin nixos nixos-config wezterm
Last synced: 1 day ago
JSON representation
❄️ Personal Nix config files for my development machines & VMs
- Host: GitHub
- URL: https://github.com/shzhng/nix-config
- Owner: shzhng
- Created: 2024-07-10T22:15:53.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T09:33:58.000Z (13 days ago)
- Last Synced: 2024-09-19T01:06:41.663Z (7 days ago)
- Topics: dotfiles, home-manager, macos, nix, nix-darwin, nixos, nixos-config, wezterm
- Language: Nix
- Homepage:
- Size: 1.55 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nix/MacOS System Configurations
[![NixOS 24.05](https://img.shields.io/badge/NixOS-24.05-blue.svg?style=flat-square&logo=NixOS&logoColor=white)](https://nixos.org)
[![NixOS 24.05](https://img.shields.io/badge/nixpkgs-24.05-blue.svg?style=flat-square&logo=NixOS&logoColor=white)](https://github.com/NixOS/nixpkgs)This repository contains my own personal MacOS (using
[nix-darwin](https://github.com/LnL7/nix-darwin)) and
[home-manager](https://github.com/nix-community/home-manager) system
configurations. I use this to provision my MacOS instance, as well as provision
the same environment on Linux systems (currently non-NixOS) using standalone
home-manager.> [!IMPORTANT]
> This is a work in progress and may not work as expected. It isn't
> intended to be used by other people in their own setup, but feel free to
> reference it as you get into using `nix`.![MacOS](./assets/darwin-wezterm.png)
## Setup
1. Install `nix` (if not on NixOS) I prefer to use the [Determinate Systems
installer](https://github.com/DeterminateSystems/nix-installer).```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```2.a Initialize the MacOS system, with home-manager as a module
```sh
nix run nix-darwin -- switch --flake .
```2.b. Initialize home-manager on a Linux system
```sh
nix run home-manager -- switch --flake .
```3.a. Reload the full system on MacOS
```sh
darwin-rebuild switch --flake .
```3.b. Reload home-manager on a Linux system
```sh
home-manager switch --flake .
```