This is a collection of my NixOS machines.
- my XMonad config is here: https://github.com/mislavzanic/xmonad-flake.
- my Emacs config is here: https://github.com/mislavzanic/emacs-flake
- my NixOS modules are here: https://github.com/mislavzanic/nix-modules
- my NixOS utils are here: https://github.com/mislavzanic/nix-utils
I’ve decided to go full ballistic and do a major cleanup of this repo.
This repo has become a hot mess of wm configs, host configs, nix scripts, etc. and I’ve decided to flakefy it. I also want to config some machines that I won’t commit here and I don’t want to reference this flake in those configs.
- after flashing and booting into a nixos image do this
nix-shell -p git vim
# Set HOST to the desired hostname of this system
HOST=...
# Set USER to your desired username
USER=...
git clone https://github.com/mislavzanic/nixos-dotfiles.git /etc/dotfiles
cd /etc/dotfiles
nix run .#disk-partition.regular --experimental-features 'nix-commands flakes'
mkdir -p hosts/$HOST
nixos-generate-config --root /mnt --dir host/$HOST
rm hosts/$HOST/configuration.nix
cp hosts/milivoj/default.nix hosts/$HOST
git add hosts/$HOST
USER=$USER nixos-install --root /mnt --impure --flake .#$HOST
mv /etc/dotfiles /mnt/etc/dotfiles