zaneyos/README.md

111 lines
5.0 KiB
Markdown
Raw Normal View History

<div align="center">
# MAINTENANCE MODE: ACTIVE
*The repo is currently under active edits and may contain undocumented changes as well as possibly broken configurations. This is temporary and will change after the repository is stable!*
## ZaneyOS 🟰 Best ❄️ NixOS Configs
2023-12-13 23:33:53 +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-02-19 06:28:43 +01:00
<img align="center" width="80%" src="https://gitlab.com/Zaney/zaneyos/-/raw/main/config/home/files/media/demo.jpg" />
2023-12-13 23:33:53 +01:00
2024-02-18 03:03:15 +01:00
</div>
> **This project has a [Wiki](https://gitlab.com/Zaney/zaneyos/-/wikis/home). Please read it to find out information on subjects that you may need to learn more about!**
> **I have put a lot of effort into the documentation so it should be accurate. However, please if you notice that something is wrong with it create an issue or reach out to me on Discord.**
#### 🍖 Requirements
- You must be running on NixOS.
- Must have installed using GPT & UEFI.
- Change settings through script or manually editing options.nix file.
#### 🎹 Pipewire, Spotify, & Notification Menu Controls
- We are using the latest and greatest audio solution for Linux. If you like listening to music Spotify comes pre-installed out of the box. Not to mention you will have media and volume controls in the notification center available in the top bar.
#### 🏇 Optimized Workflow, tmpfs For Speed, & Simple Yet Elegant Neovim
- Using scratchpads with Hyprland for increased functionality and effeciency.
- A tmpfs for the /tmp directory is created improving rebuild time and reducing strain on hdd/ssd.
- No massive Neovim project here. This is my simple, easy to understand, yet incredible Neovim setup. You can grep recursively through entire folders and find specific files without ever leaving the text editor!
<div align="center">
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).
</div>
#### 📦 How To Install Packages?
- You can search the Nix Packages & Options pages for what a package may be named or if it has options available that take care of configuration hurdles you may face.
- To add a package there are the packages.nix files located in config/system and config/home folders. One is for programs available system wide and the other for your users environment only.
#### 🙋 Having Issues / Questions?
- Please feel free to raise an issue on the repo, please label a feature request with the title beginning with [feature request], thank you!
- Contact me on [Discord](https://discord.gg/2cRdBs8) as well, for a potentially faster response.
#### ⚠️ Important Changes!
- **The stable branch is gone, this means this project changes as my system changes. This will help with managing documentation. From now on before updating the repository please ensure the flake is not in maintenance mode. If an announcement has not been made on top of this page and Discord then its safe to pull and use the repository.**
- **Impermanence/persistence has been moved to only being sourced inside the hardware.nix file. If you want to use this feature then please read the Wiki page about how to implement it.**
### ⬇️ Install
2023-12-15 07:56:25 +01:00
#### 📜 Script:
This is the easiest and recommended way of starting out. The script is not meant to allow you to change every option that you can in the flake or help you install extra packages. It is simply here so you can get my configuration installed with as little chances of breakages and then fiddle to your hearts content!
Simply make sure you have git installed already or install it with:
2024-02-02 08:36:37 +01:00
```
nix-shell -p git
2024-02-02 08:36:37 +01:00
```
then run:
2024-02-12 06:40:37 +01:00
```
Coming Soon
2024-02-12 06:40:37 +01:00
```
#### 🦽 Manual:
Run this command to ensure Git & Vim are installed:
```
nix-shell -p git vim
```
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*
**🪧🪧🪧 Edit options.nix 🪧🪧🪧**
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
Run this to enable flakes and install the flake replacing hostname with whatever you put in the options.nix file:
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 .#hostname
2024-01-09 23:50:24 +01:00
```
2023-12-15 07:56:25 +01:00
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!