1
0
Fork 0
forked from auxolotl/templates
Nix templates for quickly bootstrapping a system with Auxpkgs
Go to file
Abhiram aaf3a6ba81
Merge pull request from aemogie/feat/system-nixpkgs-revision
feat(system): change nixpkgs rev to nixos-unstable
2024-05-02 21:07:48 +05:30
darwin use standard module system over specialArgs 2024-05-01 20:20:19 -04:00
home-manager Merge pull request from getchoo/modules 2024-05-02 09:31:39 +00:00
system Merge pull request from aemogie/feat/system-nixpkgs-revision 2024-05-02 21:07:48 +05:30
.gitignore chore: ignore template flake.locks 2024-05-02 13:01:26 +05:30
flake.lock Initial work on creating sensible templates 2024-05-01 16:55:17 -04:00
flake.nix pass nixpkgs directly in forAllSystems 2024-05-01 17:38:50 -04:00
README.md Add SIG: Core maintainers 2024-05-02 14:29:36 +00:00

Welcome to Aux

This is a template repository for getting started with your brand new FreshwaterOS 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 system
  • home-manager - The configuration for the home-manager

With Darwin (macOS)

  1. Run nix 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. Run nix flake new -t github:auxolotyl/templates#system NixFiles
  2. Move into your new system with cd NixFiles
  3. Fill in your hostName in flake.nix
  4. Run nixos-generate-config --show-hardware-config > hardware-configuration.nix to generate configuration based on your filesystems and drivers
  5. Run nixos-rebuild build --flake .#hostName, replacing hostName with your new hostName

Congratulations, you are now using Aux!

With Home-manager

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