($CONFIG
is the location of this repo)
git clone git@github.com:alexpeits/nixos-config.git $CONFIG
- add
$CONFIG/configuration.nix
to the imports in/etc/nixos/configuration.nix
(sample configuration is inassets
) - add
$CONFIG/nixos-config/hardware-configuration.nix
to the same list sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
sudo nix-channel --update
- change your name to alex because it's hardcoded in the configurations
sudo mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/alex
(forhome-manager
)sudo nixos-rebuild switch