https://github.com/negrel/dotfiles
My personal dotfiles as a Nix flake.
https://github.com/negrel/dotfiles
dotfiles nix nixos
Last synced: 3 months ago
JSON representation
My personal dotfiles as a Nix flake.
- Host: GitHub
- URL: https://github.com/negrel/dotfiles
- Owner: negrel
- License: mit
- Created: 2023-01-08T17:56:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-07-22T19:15:30.000Z (about 1 year ago)
- Last Synced: 2025-07-22T21:13:08.058Z (about 1 year ago)
- Topics: dotfiles, nix, nixos
- Language: Nix
- Homepage:
- Size: 4.27 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dotfiles - Nix Flakes of my configurations.
## Install
First, execute the following steps:
- Download NixOS ISO from the official [download page](https://nixos.org/download.html#download-nixos)
- Flash downloaded ISO on a USB stick (using `dd` for example)
- Boot USB stick and execute the following commands:
```shell
# Follow NixOS pre-installation steps manual (everything except nixos-install)
# https://nixos.org/manual/nixos/stable/
# Update channels & install git
nix-channel --update
...
nix-env -i git
# Clone this repository
git clone https://github.com/negrel/dotfiles
# Generate configuration.nix and hardware-configuration.nix
cd dotfiles
nixos-generate-config --root .
# Overwrite hardware-configuration of one of the host
host=""
mv etc/nixos/hardware-configuration.nix "hosts/$host/"
# Add bootloader entry in hardware-configuration
# NOTE: NixOS place bootloader configuration in configuration.nix by default.
nano "hosts/$host/hardware-configuration.nix"
# Install
nixos-install --flake ".#$host"
...
```
Reboot and that's it, your system is live.
## :stars: Show your support
Please give a :star: if this project helped you!
[](https://www.buymeacoffee.com/negrel)
## :scroll: License
MIT © [Alexandre Negrel](https://www.negrel.dev/)