Unified configuration managed via Nix Flakes and Home Manager.
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-configEnsure tooling is available by allowing direnv to access the flake.
cd /etc/nix-config
direnv allowApply 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├── 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