Nix templates for quickly bootstrapping a system with Auxpkgs
Go to file
Andre 94377f7487
Some checks failed
Code Check / Run nixfmt and statix (push) Waiting to run
Code Check / Run nixfmt and statix (pull_request) Has been cancelled
feat: Add Lix to new user template
2024-06-22 12:37:53 -04:00
.github/workflows ci: Added nixfmt and statix 2024-05-05 19:24:58 +05:30
c chore: change to nixos/nixpkgs 2024-05-18 09:28:57 +01:00
darwin chore: ignore some inputs 2024-05-18 09:29:07 +01:00
direnv Fix: Update nixpkgs url for new roadmap 2024-05-11 16:30:01 -04:00
home-manager Fix: Update home-manager 2024-05-11 16:31:56 -04:00
system feat: Add Lix to new user template 2024-06-22 12:37:53 -04:00
.gitignore chore: ignore template flake.locks 2024-05-02 13:01:26 +05:30
CONTRIBUTING.md docs: contributing 2024-05-02 21:10:36 +01:00
flake.lock Initial working commit for new user system templates 2024-06-14 22:13:48 -04:00
flake.nix Fix: Update nixpkgs url for new roadmap 2024-05-11 16:30:01 -04:00
README.md chore: Namespacing; update top-level Readme 2024-06-16 14:32:29 -04:00

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 - A complete NixOS system configuration template for the Linux operating system
  • home-manager - The configuration for the home-manager

With Darwin (macOS)

  1. Run nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t github:auxolotl/templates#darwin NixFiles in the terminal. This will setup the basic configuration for the system, this generate a configuration for you from the files located in the darwin directory.
  2. The next step is to go into the NixFiles directory this can be achieved by running cd NixFiles.
  3. 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.
  4. You now must rebuild this configuration we can do this with nix run darwin -- switch --flake .#hostname hostname should be substituted for your systems hostname.
  5. After your first run you are now able to use the darwin-rebuild switch --flake . command to rebuild your system.

With NixOS

  1. Install a base NixOS system
  2. Run nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t github:auxolotl/templates#system NixFiles
  3. Move into your new system with cd NixFiles
  4. Fill in your hostName in flake.nix
  5. Run nixos-generate-config --show-hardware-config > host/hardware-configuration.nix to generate configuration based on your filesystems and drivers
  6. Edit the host/configuration.nix file with your desired system configuration
  7. Run nixos-rebuild build --flake .#hostName, replacing hostName with your new hostName

Congratulations, you are now using NixOS!

With Home-manager

  1. Run nix --extra-experimental-features nix-command --extra-experimental-features flakes flake new -t github:auxolotl/templates#home-manager NixFiles to start
  2. Move into your new Nix system with cd NixFiles
  3. Fill in your username in flake.nix