Skip to content

Nix configuration for my MacOS machine and NixOS homelab server.

Notifications You must be signed in to change notification settings

ushiradineth/nix-config

Repository files navigation

❄️ Nix Configuration

This repository contains my nix configuration for my MacOS machine and NixOS homelab server.

Reference

This repository drew significant inspiration from the outstanding work done by Ryan Yin. The following repositories were referenced:

Installation on MacOS (shu)

Install Nix Package Manager

sh <(curl -L https://nixos.org/nix/install)

Pull the configuration

cd ~
nix-shell -p git
git clone https://github.com/ushiradineth/nix-config.git
cd nix-config

Install Xcode Command Line Tools

xcode-select --install

Enable Rosetta

sudo softwareupdate --install-rosetta --agree-to-license

Build nix flake

cd ~/nix-config
nix-shell -p just
just build-shu

Installation on Linux (shulab)

Install Nix Package Manager

sh <(curl -L https://nixos.org/nix/install)

Pull the configuration

cd ~
nix-shell -p git
git clone https://github.com/ushiradineth/nix-config.git
cd nix-config

Build nix flake

cd ~/nix-config
nix-shell -p just
just build-shulab

Configuration Structure

› tree
.
├── flake.nix # Main entry point
├── home # home-manager configurations
│   ├── base
│   ├── darwin
│   ├── linux
├── hosts  # hosts configurations
│   ├── shu
│   └── shulab
├── Justfile
├── lib # helper functions
├── modules # Modules for extending configurations
│   ├── darwin
│   ├── linux
├── outputs # Architecture specific outputs
│   ├── aarch64-darwin
│   └── x86_64-linux
└── vars # Variables for dynamic configurations

About

Nix configuration for my MacOS machine and NixOS homelab server.

Topics

Resources

Stars

Watchers

Forks