Nix templates for quickly bootstrapping a system with Auxpkgs
The darwin template was failing for me, until I changed user creation to `users.users.${username}`.
Co-authored-by: Dusty Pomerleau <dustypomerleau@users.noreply.github.com>
Reviewed-on: #36
Co-authored-by: Dusty Pomerleau <dustypomerleau@noreply.git.auxolotl.org>
Co-committed-by: Dusty Pomerleau <dustypomerleau@noreply.git.auxolotl.org>
|
||
|---|---|---|
| .github/workflows | ||
| c | ||
| darwin | ||
| direnv | ||
| home-manager | ||
| system | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
Welcome to Aux
This is a template repository for getting started with your brand new Auxolotl system.
Getting Started
There are 3 main templates in this repository:
darwin- The system configuration for the Darwin operating system (macOS)system- The system configuration for the Linux operating systemhome-manager- The configuration for the home-manager
With Darwin (macOS)
- Run
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t git+https://git.auxolotl.org/auxolotl/templates#darwin NixFilesin the terminal. This will setup the basic configuration for the system, this generate a configuration for you from the files located in thedarwindirectory. - The next step is to go into the
NixFilesdirectory this can be achieved by runningcd NixFiles. - Now we you need to read over the configuration files and make any changes that you see fit, some of these must include changing your username and hostname.
- You now must rebuild this configuration we can do this with
nix run darwin -- switch --flake .#hostnamehostname should be substituted for your systems hostname. - After your first run you are now able to use the
darwin-rebuild switch --flake .command to rebuild your system.
With NixOS
- Run
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t git+https://git.auxolotl.org/auxolotl/templates#system NixFiles - Move into your new system with
cd NixFiles - Fill in your
hostNameinflake.nix - Run
nixos-generate-config --show-hardware-config > hardware-configuration.nixto generate configuration based on your filesystems and drivers - Run
nixos-rebuild build --flake .#hostName, replacing hostName with your new hostName
Congratulations, you are now using Aux!
With Home-manager
- Run
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t git+https://git.auxolotl.org/auxolotl/templates#home-manager NixFilesto start - Move into your new Nix system with
cd NixFiles - Fill in your
usernameinflake.nix