thled / nix-config

Automated provisioning of a NixOS development environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NixOS Setup

Requirements

NixOS Installation

  1. Use GUI installer

  2. Clone repo into ~/dev/

    git clone https://github.com/thled/nix-config.git
  3. Link configuration

    rm -rf /etc/nixos
    sudo ln -s ~/dev/nix-config /etc/nixos
  4. Deploy configuration

    sudo nixos-rebuild switch
  5. Reboot

    reboot
  6. Change initial password (123)

    passwd
  7. Configure wifi

    nmcli device wifi connect <SSID> --ask

After installation (optional)

  • Sync Firefox config and addons by logging in.
  • Add SSH keys to ~/.ssh/.
  • Create ~/dev and ~/work folder for personal and work related projects, respectively.
  • Create ~/screenshots folder for taking screenshots with Win+s.
  • For fast capture to inbox with the i function (see fish alias) write recipient email into ~/.inbox_email and password for SMTP into ~/.inbox_pass.
  • Connect bluetooth devices (e.g. headset) with bluetoothctl.
  • Obsidian Vault: git clone git@github.com:thled/references.git
  • Put OpenVPN configuration for office into ~/office.ovpn.
  • Put licence key for intelephense into ~/intelephense/licence.txt.
  • Configure k8s in ~/.kube/config.

Usage

  • Start terminal with Win+Shift+Return.
  • Start any application with Win+p.
  • Use VPN with sudo systemctl start openvpn-protonVPN.service.
  • Manage NixOS configuration in ~/dev/nix-config.
  • Update with nix flake update.

About

Automated provisioning of a NixOS development environment.


Languages

Language:Nix 79.6%Language:Shell 6.1%Language:CSS 5.2%Language:SCSS 4.5%Language:Vim Script 2.6%Language:Just 2.1%