zaneyos/README.md

1.8 KiB

ZaneyOS 🟰 Best ❄️ NixOS Configs

ZaneyOS is a way of reproducing my configuration on any NixOS system. This includes the wallpaper, scripts, applications, config files, and more. Please remember to change username and hostname in flake.nix.

If you want to learn more about my system, this project has a Wiki that explains a ton. It even explains what NixOS is why you may want to choose it and so much more.

Install / Steps To Reproduce My System

  • Enable flakes, and the Hyprland cache so you don't have to build it, in your default configuration.nix by adding this:
# Enable Flakes and the new command-line tool
nix = {
  settings = {
    experimental-features = [ "nix-command" "flakes" ];
    substituters = ["https://hyprland.cachix.org"];
    trusted-public-keys = [
      "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
    ];
  };
};

This file should be located at /etc/nixos/configuration.nix

  • Ensure you have Git listed in your pkgs in the /etc/nixos/configuration.nix file.
  • Change the hostname in the /etc/nixos/configuration.nix file.
  • Rebuild your system.
sudo nixos-rebuild switch
  • Reboot your system.
  • Clone this repo.
  • Then go into repo folder (stay in this folder)
  • Change username, hostname, theme, and any other variables you may want under user information in flake.nix
  • Ensure you have selected the proper cpuType and gpuType in the flake as well.
  • Generate your hardware.nix like so:
nixos-generate-config --show-hardware-config > hardware.nix
  • Run this command:
sudo nixos-rebuild switch --flake .

Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in flake.nix!

Hope you enjoy!