Skip to content

lonerOrz/loneros-nixos

Repository files navigation

NixOS Logo
Lonero's NixOS Configuration

My personal NixOS configuration, managed with Nix Flakes.

Important

Note: I am not currently using home-manager for user-level dotfile configuration.


🖼️ Previews

🌟 Catppuccin Style

Preview 1 Preview 2 Preview 3
🎨 Gruvbox Style (Click to expand)
| ![Preview 1](assets/preview/box1.png) | ![Preview 2](assets/preview/box2.png) | ![Preview 3](assets/preview/box3.png) | | :---------------------------------: | :---------------------------------: | :---------------------------------: |

✨ Features

  • Declarative & Reproducible: Managed entirely by Nix Flakes for a consistent environment.
  • Window Manager: Uses Hyprland, a dynamic tiling Wayland compositor.
  • Theming: Themed with Stylix and the beautiful Catppuccin color scheme.
  • Secrets Management: Securely manages secrets using sops-nix.
  • Custom Packages: Includes custom packages and overlays, defined in the pkgs and overlays directories.
  • Deployment: Utilizes deploy-rs for remote deployment.

📂 Structure

This repository is organized as follows:

  • flake.nix: The entry point for the entire configuration.
  • hosts/: Contains machine-specific configurations.
    • loneros/: Main desktop configuration.
    • remote-vm/: Configuration for a remote virtual machine.
  • home/: User-specific configurations (not managed by home-manager).
  • modules/: Reusable NixOS modules for drivers and services.
  • overlays/: Customizations and overrides for existing packages.
  • pkgs/: Definitions for custom packages.
  • programs/: Configurations for various applications.
  • system/: Global, system-wide settings.
  • secrets/: Holds secret definitions for sops-nix.
  • themes/: Theming definitions, primarily for stylix.

🛠️ Installation & Usage

1. Initial Installation

To install this configuration on a new machine, you can use the provided install.sh script or manually use nixos-install.

Automated Script:

git clone https://github.com/lonerOrz/loneros-nixos.git
cd loneros-nixos
chmod +x install.sh
./install.sh

Manual Flake Installation: Replace <hostname> with one of the defined hosts (e.g., loneros).

sudo nixos-install --flake .#<hostname>

2. Updating the System

To apply changes after modifying the configuration, run the following command:

# Using a helper tool like nh
nh os switch --flake .#<hostname>

# Or using standard nixos-rebuild
sudo nixos-rebuild switch --flake .#<hostname>

📝 TODO

  • Support more themes.
  • Fix the "RemoteDesktop portal not implemented" error in rustdesk under Hyprland.
  • Write more detailed documentation.

🔗 Credits

This configuration was inspired by and utilizes resources from the following projects:

About

❄️ My NixOS configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5