Skip to main content
  1. ZaneyOS 1.0 Documentation/

How To Use ZaneyOS

2 mins· 0 · 0 · ·
Zaney
Docs NixOS ZaneyOS
Table of Contents
Documentation - This article is part of a series.
Part 7: This Article

I have some very useful aliases that are available to you after switching to the flake.

  • flake-update

This runs a nix flake update on the flake directory. You probably shouldn’t run this. This updates all packages and the lock file in the ZaneyOS flake. Only do this if you need to and know you need to, running this command opens you up to breaking changes.

  • flake-rebuild

Runs a rebuild switch --flake on the flake directory. Used for updating the system after you have made changes to some of the files.

  • gcCleanup

This removes all other generations other than the current. Great for cleaning up the system if you have been rebuilding and making changes a lot recently.

For most system maintenance this is all that is required.

💽 Main Configuration #

Most options that you are likely to want to change are defined in hosts//options.nix inside the ZaneyOS repository. These are variables that are used to determine how things are configured later in other files. This file is the only file you will need to edit if you’re happy with what I have available for my system.

🦸 Getting Updates To ZaneyOS #

I am not a Git wizard and so this script could probably be improved greatly. However, I am happy enough with this solution for now.

The install script that is ran to install ZaneyOS can also be used to to backup and get the newest updates. So just run it again and it will move the ZaneyOS folder/repo you have now to a backup folder in your .config folder and get the newest version from GitLab.

📦 Adding & Installing Extra Packages #

You can find the array of packages being installed for your user specifically at config/home/packages.nix and for the system packages it’s the config/system/packages.nix file. There is also the option to add the extra packages you want in the users/users.nix file.

You MUST use the proper NixOS package names.

Visit the NixOS Packages page to search for the application you want. It is a good idea to check the NixOS Options at the top of that page as well for the package your searching for.

If the package you are installing needs extra configuration there is a decent chance there is a way of installing it, (enable = true;), through NixOS options or Home Manager.

Documentation - This article is part of a series.
Part 7: This Article

Related

Commonly Reported Issues
1 min· 0 · 0
Zaney
Docs NixOS ZaneyOS
How The Config Files Work
2 mins· 0 · 0
Zaney
Docs NixOS ZaneyOS
How Theming Works
1 min· 0 · 0
Zaney
Docs NixOS ZaneyOS
How To Install ZaneyOS
2 mins· 0 · 0
Zaney
Docs NixOS ZaneyOS
My NixOS Configuration: ZaneyOS Explained
5 mins· 0 · 0
Zaney
Docs NixOS ZaneyOS
Setting Options For Flake
4 mins· 0 · 0
Zaney
Docs NixOS ZaneyOS