https://github.com/arconightshade/lyonos-v2
My personal Nix flake: Now fully reproducible!
https://github.com/arconightshade/lyonos-v2
linux nix-flake nixos nixos-configuration
Last synced: 4 months ago
JSON representation
My personal Nix flake: Now fully reproducible!
- Host: GitHub
- URL: https://github.com/arconightshade/lyonos-v2
- Owner: ArcoNightshade
- Created: 2025-09-14T04:07:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-02T21:55:50.000Z (9 months ago)
- Last Synced: 2025-10-02T23:34:15.626Z (9 months ago)
- Topics: linux, nix-flake, nixos, nixos-configuration
- Language: Nix
- Homepage: https://www.raptorbytes.org
- Size: 12.1 MB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README



#### LyonOS V2 - New and *improved!*
LyonOS is my personal Linux distribution based on NixOS. This repository contains all the flake that I use on my laptop, desktop, and VMs.
---
### Setup
```
git clone https://github.com/ArcoNightshade/LyonOS-V2 ~/.lyonos && rm -rf ~/.lyonos/.git
```
```
cp /etc/nixos/hardware-configuration.nix ~/.lyonos/profile/workstation/hardware.nix
```
Set your username.
```
nano ~/.lyonos/flake.nix
```
Specify your drive type (scroll to the bottom)
```
nano ~/.lyonos/compose.nix
```
Set your password, use this to get the hash
```
mkpasswd -m sha-512
```
Place the output in `hashedPassword = "";`
```
nano ~/.lyonos/compose.nix
``````
Rebuild & reboot to be safe, or just switch.
```
sudo nixos-rebuild boot --flake ~/.lyonos#workstation
```
---
### Commands
```
sudo nixos-rebuild switch --flake ~/.lyonos#workstation
```
nixos-rebuild has a few options:
* switch : switches to the new configuration immediately
* boot : builds the next generation but does not switch until reboot
* dry-run : only evaluates the code to see if it works
* test : switches to the new generation but does not save it to the boot menu
```
sudo nixos-rebuild switch --flake ~/.lyonos#workstation --rollback
```
Rolls back to the previous generation.
```
sudo nix-collect-garbage
```
Deletes all previous generations so you don't run out of space.
```
sudo nix flake update --flake ~/.lyonos#workstation
```
Update system.
```
nix-shell -p cowsay
```
Installs software to the shell (not the system) and is discarded when the shell (terminal) is closed.
#### Important links:
[How to setup NVIDIA](https://nixos.wiki/wiki/Nvidia)
Copy paste to compose.nix and add `config` to `{ settings, ... }:` => `{ settings, config, ... }:`
```
hardware.nvidia.open = false;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
boot.blacklistedKernelModules = [ "nouveau" ];
services.xserver.videoDrivers = [ "nvidia" ];
boot.kernelParams = [
"nvidia_drm"
"nvidia_modeset"
"nvidia_uvm"
"nvidia-drm.fbdev=1"
"nvidia"
];
```
[NixOS packages](https://search.nixos.org/packages)
[NixOS options](https://search.nixos.org/options)
[Home manager options](https://home-manager-options.extranix.com/)