A set of NixOS configuration files and build helpers.
- NixOS build files named like
<hostname>-configuration.nix
, included files are named like_*.nix
. extra/post-install-config.sh
is a distribution agnostic shell script that installs configuration settings that are not managed by Nix (dotfiles and GNOME desktop shortcuts).
- Move from channels to flake-based configurations.
-
If you haven't already done so, you will need to install and log in to NixOS on the target machine.
-
Download this repo.
cd ~ git clone https://github.com/srackham/nixos-configurations.git
-
Optionally edit configuration files.
-
Rebuild NixOS using the
mknixos
alias:alias mknixos="sudo nixos-rebuild -I nixos-config=$HOME/nixos-configurations/$HOST-configuration.nix" mknixos switch # Run `nixos-rebuild switch`.
nixos1
: GNOME desktop VirtualBox guest.rpi1
: Raspberry Pi 4 NAS server (CUPS, NFS, SMB).
Nix modules imported by host configuration files:
_rp4.nix
: Raspberry Pi 4 specific._server.nix
: services, packages and users.
A comprehensive look at NixOS configuration modularity can be found here: How to Start Adding Modularity to your NixOS Config.