dbeley / nixos-config

My NixOS config files.
8 stars 0 forks source link
dotfiles hyprland nix nixos nixos-config nixos-configuration nixos-dotfiles waybar

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

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