zaneyos/README.md

70 lines
2.1 KiB
Markdown
Raw Normal View History

<div align="center">
2023-12-13 23:33:53 +01:00
# 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.*
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-18 03:03:15 +01:00
</div>
## 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-02-18 04:51:58 +01:00
![](./config/home/files/media/demo.mp4)
Please do yourself a favor and [read the wiki](https://gitlab.com/Zaney/zaneyos/-/wikis/home).
# Install / Steps To Reproduce My System
2023-12-15 07:56:25 +01:00
2024-02-12 06:40:37 +01:00
- Run this command to ensure Git is installed:
2024-02-02 08:36:37 +01:00
```
nix-shell -p git vim
2024-02-02 08:36:37 +01:00
```
2024-02-12 06:40:37 +01:00
- Clone this repo & enter it:
```
git clone https://gitlab.com/zaney/zaneyos.git
cd zaneyos
```
- *You should stay in this folder for the rest of the install*
**If you want to run a stable release you will need to run a command like this:**
```
git switch stable-1.0
```
### Change any options in options.nix that you may want / need to
2024-01-18 08:16:28 +01:00
- Generate your hardware.nix like so:
```
2024-01-18 08:16:28 +01:00
nixos-generate-config --show-hardware-config > hardware.nix
```
2023-12-15 07:56:25 +01:00
2024-02-12 06:35:45 +01:00
- Run this to enable flakes and install the flake:
2023-12-15 07:56:25 +01:00
2024-01-09 23:50:24 +01:00
```
NIX_CONFIG="experimental-features = nix-command flakes"
sudo nixos-rebuild switch --flake .#thehostnameyousetinoptions.nix
2024-01-09 23:50:24 +01:00
```
2023-12-15 07:56:25 +01:00
## You Are Done!
2024-02-13 03:37:58 +01:00
This Flake's user will have the password be set for them as *password*. If you want to change it run a command replacing password with whatever you want to be your password. You then need to copy the output that it gives you like below into your hashedPassword in the system.nix file.
```
mkpasswd -m sha-512 password
$6$YdPBODxytqUWXCYL$AHW1U9C6Qqkf6PZJI54jxFcPVm2sm/XWq3Z1qa94PFYz0FF.za9gl5WZL/z/g4nFLQ94SSEzMg5GMzMjJ6Vd7.
```
2024-02-08 22:49:08 +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 options.nix!
2023-12-15 07:56:25 +01:00
Hope you enjoy!