8000 GitHub - tioxy/nix-config: Unified configuration managed via flakes and home-amanager · GitHub
[go: up one dir, main page]

Skip to content

About

Unified configuration managed via flakes and home-amanager

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

nix-config

Unified configuration managed via Nix Flakes and Home Manager.

Quick Start

1. Clone the folder

Clone the repsitory and move it to a shared folder. If changing the folder, change the alias rebuild for it.

git clone git@github.com:tioxy/nix-config.git /etc/nix-config
sudo mv nix-config /etc/nix-config

2. Allow direnv

Ensure tooling is available by allowing direnv to access the flake.

cd /etc/nix-config
direnv allow

3. Apply configuration

Apply the configuration using darwin-rebuild. Impure is used to allow multiple users to use the same configuration and avoid permission errors. Check flake.nix for more information.

# Impure is required as the configuration uses the current user to set home-manager
sudo darwin-rebuild switch --flake /etc/nix-config --impure

Structure

├── flake.nix           # Entry point & Inputs
├── hosts/
│   └── darwin/         # Machine-specific settings for macOS hosts (e.g., macbook-pro)
└── modules/
    ├── darwin/         # macOS system modules
    └── home-manager/   # User configurations
        ├── common/     # Shared user settings
        ├── tioxy/      # User 'tioxy' specific
        └── work/       # User 'work' specific

About

Unified configuration managed via flakes and home-amanager

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages

0