This is my ever-evolving dotfiles repository, used to manage my desktop workstation, a MacBook Pro, and any Linux devbox capable of running Nix. This repository is constantly improved or changed in some way. It follows a structure to keep related configurations together, but not too much to reduce complexity.
nix develop
# NixOS rebuilds (hostname autodetection)
nh os switch .
# HomeManager rebuilds (hostname & username autodetection)
nh home switch .
# NixOS build with custom hostname
nh os build --hostname kubex .
# HomeManager build with custom hostname
nh home switch -c macbook
# NixOS build installer iso image
nix build .#nixosConfigurations.iso.config.system.build.isoImage
# NixOS remote switch
nixos-rebuild switch --flake .#kubex --target-host 192.168.55.10 --use-remote-sudo
💽 Disko
Disko is used to provision disks, it creates automatically the filsystems
configuration.
# Run disko from an installer
sudo nix run github:nix-community/disko --no-write-lock-file -- --mode zap_create_mount ./hosts/zion/disko.nix
# After this nixos can be installed
sudo nixos-install --flake .#zion
The NixOS logo used in this repository is based on the original design available at NixOS Artwork Repository.
The original NixOS logo is licensed under the Creative Commons Attribution-Share Alike 4.0 International License (CC BY-SA 4.0).
This version of the logo has been modified, including changes to the colors, for use in this project.
As required by the CC BY-SA 4.0 license:
- Proper attribution must be given for the original logo design.
- Any further use, modification, or distribution of this logo (including the modified version) must comply with the terms of the CC BY-SA 4.0 license, including sharing derivative works under the same license.