Copy the disko configuration to /tmp/disko.nix and run
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /tmp/disko.nix
Generate the config using
sudo nixos-generate-config --root /mnt.
Then, edit the config using sudo vim /mnt/etc/nixos/configuration.nix.
Here are some sections of the configuration you should add:
networking.hostName = "eliasDesktop";
# Keyboard layout
services.xserver.xkb.layout = "de";
# Add a user!
users.users.elias = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Sudo access
};
# Install an editor to edit the configuration
environment.systemPackages = with pkgs; [ neovim git ]; # or vim!
system.stateVersion = "25.11";
Add vpn_coe.nmconnection to the folder /etc/NetworkManager/system-connections.