2023-12-13 23:33:53 +01:00
# ZaneyOS 🟰 Best ❄️ NixOS Configs
2024-01-12 09:16:27 +01:00
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.*
2023-12-13 23:33:53 +01:00
2024-01-24 09:02:28 +01:00
![](./config/home/files/media/demo.jpg)
2023-12-13 23:33:53 +01:00
2024-02-05 23:09:21 +01:00
## READ THE WIKI
If you want to learn more about my system, [this project has a Wiki ](https://gitlab.com/Zaney/zaneyos/-/wikis/home ) that explains a ton. It even explains what NixOS is why you may want to choose it and so much more.
2024-01-30 09:02:47 +01:00
# Install / Steps To Reproduce My System
2023-12-15 07:56:25 +01:00
2024-02-02 09:11:27 +01:00
- Enable flakes, and the Hyprland cache so you don't have to build it, in your default configuration.nix by adding this:
2024-01-15 22:48:05 +01:00
```
# Enable Flakes and the new command-line tool
2024-02-02 09:11:27 +01:00
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
};
2024-01-15 22:48:05 +01:00
```
This file should be located at /etc/nixos/configuration.nix
2024-02-02 08:36:37 +01:00
- 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.
2024-01-15 22:48:05 +01:00
- Rebuild your system.
2024-02-02 08:36:37 +01:00
```
sudo nixos-rebuild switch
```
- Reboot your system.
2024-01-15 22:48:05 +01:00
- Clone this repo.
2024-02-06 04:50:28 +01:00
- Then go into repo folder (stay in this folder).
- Change username and hostname in flake.nix file.
- Change all options in options.nix as needed.
2024-01-18 08:16:28 +01:00
- Generate your hardware.nix like so:
2024-01-15 22:48:05 +01:00
```
2024-01-18 08:16:28 +01:00
nixos-generate-config --show-hardware-config > hardware.nix
2024-01-15 22:48:05 +01:00
```
2023-12-15 07:56:25 +01:00
2024-01-15 22:48:05 +01:00
- Run this command:
2023-12-15 07:56:25 +01:00
2024-01-09 23:50:24 +01:00
```
2024-01-24 06:32:20 +01:00
sudo nixos-rebuild switch --flake .
2024-01-09 23:50:24 +01:00
```
2023-12-15 07:56:25 +01:00
2024-01-18 08:16:28 +01:00
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!
2023-12-15 07:56:25 +01:00
Hope you enjoy!