1
0
Fork 0
NixOS config
Find a file
2024-05-20 22:52:44 +02:00
hosts Bluetooth already defined with xfce 2024-05-20 22:52:44 +02:00
modules xfce base config, based on https://gist.github.com/nat-418/1101881371c9a7b419ba5f944a7118b0 2024-05-20 22:29:17 +02:00
flake.lock Rebuild system with Home-Manager the first time 2024-03-22 20:05:49 +01:00
flake.nix Working basic home-manager config 2024-05-11 23:44:57 +02:00
README.md Corrected command for re-building NixOS 2024-05-12 00:32:44 +02:00

NixOS Configuration Files wit Flakes, Home-Manager

Description

My NixOS configuration repository

Install a new host

  1. Install NixOS with graphical ISO image (e.g. GNOME). During the installation the desktop environment can be choosen.
  2. Reboot into NixOS
  3. Edit /etc/nixos/configuration.nix with sudoedit a) Change hostname b) Enable flakes. Add the following lines:
# Enable flakes
 nix.settings.experimental-features = [ "nix-command" "flakes" ];
c) Install tmux, neovim, git by adding them to `environment.systemPackages = with pkgs; [`
  1. Apply changes: sudo nixos-rebuild switch and reboot
  2. Clone NixOS config repository to /home/$USER/nixos:
cd
git clone https://git.plueschbit.de/jan/nixos-conf ~/nixos
  1. Add the new host to repository a) Create ~/nixos/hosts/$HOSTNAME b) cp /etc/nixos/*.nix $HOSTNAME/. c) Edit ~/nixos/flake.nix and add section for new host d) Stage new config files: git add flake.nix hosts/$HOSTNAME/*. Otherwise, nixos-rebuild will refuse to work with the files.
  2. Apply config: sudo nixos-rebuild switch --flake ~/nixos/#<host>