Anthony Rodriguez
e24ab1eb95
This is mostly so that applications like ReGreet, which are managed by NixOS instead of HM, can also use the same GTK settings. It reduces repeating code by a lot and allows changing themes way more easily now. |
||
---|---|---|
home | ||
hosts | ||
lib | ||
modules | ||
system | ||
wallpapers | ||
.gitmodules | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
treefmt.nix |
My NixOS Flake
This repository contains my personal NixOS configurations for two machines: my laptop (vamos
) and my desktop computer (solaire
). These configurations are managed using the Nix Flake system to ensure reproducibility and ease of deployment.
Structure
flake.nix
: The main entry point for the Nix flake.hosts/
: Directory containing the specific configurations for each host (vamos
andsolaire
).modules/
: Reusable NixOS modules shared between different configurations.home/
: Userspace configuration, divided between laptop and desktop.
Hosts
Vamos (Laptop)
This is the configuration for my laptop, vamos
. It uses Gnome, and includes settings optimized for power management, and lightweight applications.
Solaire (Desktop)
This is the configuration for my desktop computer, solaire
. It also uses Gnome, and adds Nvidia drivers.
Usage
Applying the Configuration
To apply the configuration on a machine, use the following steps:
- Clone this repository:
git clone https://github.com/nezia1/dotfiles.git .dotfiles
cd .dotfiles
-
Switch to the desired configuration:
sudo nixos-rebuild switch --flake .#<hostname>
Replace
<hostname>
with eithervamos
orsolaire
depending on the machine you are configuring.
Example
For the laptop (vamos
):
sudo nixos-rebuild switch --flake .#vamos
For the desktop (solaire
):
sudo nixos-rebuild switch --flake .#solaire
License
This repository is licensed under the MIT License. See the LICENSE file for details.