https://github.com/c0d3h01/nix-dotfiles
NixOS dotfiles with a flake + Home Manager, GNOME workstation modules, Disko installs, and sops-nix secrets.
https://github.com/c0d3h01/nix-dotfiles
declarative disko dotfiles gnome home-manager linux nix nix-flake nixos nixos-unstable sops-nix workstation
Last synced: 4 months ago
JSON representation
NixOS dotfiles with a flake + Home Manager, GNOME workstation modules, Disko installs, and sops-nix secrets.
- Host: GitHub
- URL: https://github.com/c0d3h01/nix-dotfiles
- Owner: c0d3h01
- License: mit
- Created: 2025-02-26T17:21:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2026-02-05T17:30:34.000Z (4 months ago)
- Last Synced: 2026-02-06T03:34:43.909Z (4 months ago)
- Topics: declarative, disko, dotfiles, gnome, home-manager, linux, nix, nix-flake, nixos, nixos-unstable, sops-nix, workstation
- Language: Nix
- Homepage:
- Size: 65.7 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# NixOS Dotfiles (Nix Flake + Home Manager)
[](https://github.com/c0d3h01/nix-config/actions/workflows/flake-validator.yml)
[](https://github.com/c0d3h01/nix-config/actions/workflows/auto-fmt.yml)
[](https://github.com/c0d3h01/nix-config/actions/workflows/flocks-updator.yml)
[](https://github.com/c0d3h01/nix-config/actions/workflows/submodules.yml)
[](https://github.com/c0d3h01/nix-config/blob/master/LICENSE)
Personal NixOS dotfiles and Nix flake configuration for a GNOME laptop workstation. Focused on reproducible systems, developer tooling, and modular Home Manager profiles.
## Highlights
- Flake-based NixOS + Home Manager setup on `nixos-unstable`.
- Disko-powered installs and partitioning.
- sops-nix secrets management.
- Modular system, networking, and Nix settings.
- CLI and developer tools plus workstation extras.
- GNOME desktop configuration.
## Repository Layout
- `flake/`: Flake parts (nixos + home outputs, devshells, formatter).
- `hosts/`: Host definitions and configs.
- `modules/nixos/`: NixOS modules (hardware, networking, services, system, nix).
- `modules/home/`: Home Manager modules (cli, programs, environment, services).
- `dotconfigs/`: Managed dotfiles and app configs.
- `secrets/`: Encrypted secrets for sops-nix.
## Hosts
| Host | System | Username | Hostname | WM/DE | Notes |
| --- | --- | --- | --- | --- | --- |
| `laptop` | `x86_64-linux` | `c0d3h01` | `nixos` | `gnome` | `workstation = true` |
## Quick Start
### Switch NixOS Configuration
```bash
sudo nixos-rebuild switch --flake .#laptop
```
### Apply Home Manager Only
```bash
nix run github:nix-community/home-manager -- switch --flake '.#laptop'
```
## NixOS Clean Install (Disko)
```bash
sudo nix --experimental-features "nix-command flakes" run \
github:nix-community/disko/latest -- \
--mode destroy,format,mount \
--yes-wipe-all-disks \
--flake github:c0d3h01/nix-config#laptop
sudo nixos-install --flake github:c0d3h01/nix-config#laptop --no-root-passwd
```
## Notable Nix Settings
- Flakes and `nix-command` enabled with a pinned registry.
- XDG base directories enabled for Nix-related state.
- Binary caches: `cache.nixos.org` and `nix-community`.
- Auto-optimization, parallel builds, and verbose traces for debugging.