Fixing formatting errors added guide on adding GNOME
On branch main Your branch is up to date with 'origin/main'. Changes to be committed: modified: README.md new file: cheatsheets/add-gnome.md
This commit is contained in:
parent
60f11d70c3
commit
0a3e015b22
2 changed files with 63 additions and 6 deletions
11
README.md
11
README.md
|
|
@ -291,8 +291,8 @@ cp -r hosts/default hosts/<your-desired-hostname>
|
|||
git add .
|
||||
```
|
||||
|
||||
4. Edit `hosts/<your-desired-hostname>/variab
|
||||
nixos-generate-config --show-hardware-config > hosts/<your-desired-hostname>/hardware.nix
|
||||
4. Edit `hosts/<your-desired-hostname>/variables.nix`
|
||||
```nixos-generate-config --show-hardware-config > hosts/<your-desired-hostname>/hardware.nix```
|
||||
|
||||
```
|
||||
|
||||
|
|
@ -310,14 +310,13 @@ Now when you want to rebuild the configuration you have access to an alias
|
|||
called `fr` that will rebuild the flake and you do not have to be in the
|
||||
`zaneyos` folder for it to work.
|
||||
|
||||
</details>
|
||||
|
||||
### Special Recognitions:
|
||||
|
||||
Thank you for all your assistance
|
||||
|
||||
- Jakookit https://github.com/jakookit
|
||||
- Justaguylinux https://github.com/drewgrif
|
||||
- KoolDots https://github.com/LinuxBeginnings
|
||||
- JakKoolit https://github.com/Jakoolit
|
||||
- Justaguylinux https://codeberg.org/Justaguylinux
|
||||
- Jerry Starke https://github.com/JerrySM64
|
||||
|
||||
## Hope you enjoy!
|
||||
|
|
|
|||
58
cheatsheets/add-gnome.md
Normal file
58
cheatsheets/add-gnome.md
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Add GNOME Desktop (overview)
|
||||
|
||||
This guide gives **basic steps** and **which files to edit** to add GNOME to ZaneyOS.
|
||||
|
||||
In NixOS, you enable it through NixOS options in a module (a `.nix` file), then pick a display manager (login screen).
|
||||
This repo already has **SDDM** (graphical) and **LY** (text) login support. You can keep using either — both can start GNOME sessions.
|
||||
|
||||
## Files to edit (minimal list)
|
||||
|
||||
1. `modules/core/default.nix`
|
||||
- Import your new GNOME module so it becomes part of the system config.
|
||||
|
||||
2. `modules/core/xserver.nix`
|
||||
- GNOME needs `services.xserver.enable = true;` (this file currently disables X11).
|
||||
|
||||
3. `modules/core/gnome.nix` (new file you create)
|
||||
- Turn on GNOME’s desktop manager.
|
||||
|
||||
4. `hosts/<hostname>/variables.nix`
|
||||
- Make sure your `displayManager` is set to either `"sddm"` or `"tui"` (for LY), since those are already supported here.
|
||||
|
||||
## Suggested minimal GNOME module (example)
|
||||
|
||||
```nix path=null start=null
|
||||
{ ... }:
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Where to import the GNOME module
|
||||
|
||||
In `modules/core/default.nix`, add your GNOME file to the imports list:
|
||||
|
||||
```nix path=null start=null
|
||||
imports = [
|
||||
# ...
|
||||
./gnome.nix
|
||||
# ...
|
||||
];
|
||||
```
|
||||
|
||||
## Flatpak: GNOME Extensions Manager
|
||||
|
||||
To add the Flatpak app **Extension Manager** (for GNOME extensions), edit `modules/core/flatpak.nix` and add its ID:
|
||||
|
||||
```nix path=null start=null
|
||||
services.flatpak.packages = [
|
||||
"com.mattjakeman.ExtensionManager"
|
||||
];
|
||||
```
|
||||
|
||||
## `git add .` and rebuild
|
||||
|
||||
Once you have the file created. In the ZaneyOS directory run `git add . ` then `zcli rebuild`
|
||||
Loading…
Add table
Add a link
Reference in a new issue