Skip to content

Laptop & Workstation NixOS Daily Setup

License

Notifications You must be signed in to change notification settings

David-Kopczynski/nix

Repository files navigation

❄️ NixOS

NixOS is installed with GNOME with the following system configuration:

Setting Value
Name David Kopczynski
User user
Password (found in Bitwarden)

📁 Configuration Structure

This repository is structured into small nix files that are combined to create the system configuration. The general structure is as follows:

Directory Description
./channels channel configuration
./derivations custom derivations for the system
./hosts specific hardware / system configurations
./install general installation configurations
./resources resources for the system

🚀 Setup

When copying the system to a new device it is necessary to add some base configuration to the system in order to clone this repository (git, ssh). Afterwards, the setup script can be run with sh setup.sh to load this repository for the first time (when migrating the system to another device, the keystore in ~/.local/share/keyrings should also be copied to the new device, as well as the SSH keys in ~/.ssh), followed by sudo nixos-rebuild switch to build the system.

Additionally, channels must be subscribed to manually with sudo nix-channel --add $URL $NAME and updated with sudo nix-channel --update. This setup requires the following channels:

sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
sudo nix-channel --add https://nixos.org/channels/nixos-24.11 nixos
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
sudo nix-channel --add https://github.com/Mic92/sops-nix/archive/master.tar.gz sops-nix

About

Laptop & Workstation NixOS Daily Setup

Topics

Resources

License

Stars

Watchers

Forks