Skip to content

dbeley/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-config

NixOS Unstable

t470s

Type Program
Shell: fish
DM: tty1
WM: hyprland or sway + waybar
Editor: doom-emacs / neovim / helix / kakoune
Terminal: kitty
Launcher: tofi
Browser: firefox / qutebrowser
Theme: stylix

Hosts

  • p14s: my main laptop (Lenovo ThinkPad P14s Gen 4: AMD Ryzen 7 7840U, 16GB RAM, hyprland)
  • sg13: my main desktop computer (Silverstone SG13: AMD Ryzen 5 2600, RX 580 8GB, 16GB RAM, gnome)
  • x61s: my retro laptop (Lenovo Thinkpad X61s: Intel Core 2 Duo L7500, 3GB RAM, sway)
  • (deprecated) x13: my previous main laptop (Lenovo ThinkPad X13 Gen 1: AMD Ryzen 5 4650U, 16GB RAM, hyprland)
  • (deprecated) t470s: my previous main laptop (Lenovo Thinkpad T470s: Intel Core i5-6300U, 8GB RAM, hyprland)
  • (deprecated) era1: my first server image installed in a Proxmox VM (Fractal Design Era: Intel N100, 32GB RAM)

Usage

Rebuild the system

sudo nixos-rebuild switch --flake .#{host}
sudo nixos-rebuild switch --flake .#{host} --target-host root@<ip address> # for a remote host

Delete unused packages

sudo nix-collect-garbage -d # for system packages
nix-collect-garbage -d # for home-manager packages

Optimise store

nix-store --optimise -v

Install

On a new install, you should first copy /etc/nixos/hardware-configuration.nix over hosts/{host}/hardware-configuration.nix.

Post-install

git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install

just

A justfile is also provided, see https://github.com/casey/just for more information.

just switch
just clean

Create a .env and fill it with the needed environment variables:

HOST=x13