No description
| modules | ||
| .gitattributes | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
nix-config
This repo is for managing nix configuration and bash profiles.
SETUP
- Clone this repo to where you want it
- On first install copy
/etc/nixos/hardare-configuration.nixto host hardware.nix flake sudo NIX_CONFIG="experimental-features = nix-command flakes" nixos-rebuild test --flake .#laptop- first run to enable flakessudo nixos-rebuild test --flake .#laptopto validate everything is correct- Run
sudo nixos-rebuild switch --flake .#laptop-> change laptop to the correct config
Useful commands
nix-shell -p git
nix flake update
nix run nixpkgs#htop
nix shell nixpkgs#git nixpkgs#vim
nix-shell -p python3
sudo nix-collect-garbage --delete-older-than 7d
sudo nix-store --optimise
nix path-info -Sh /run/current-system
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
sudo nixos-rebuild switch --rollback
nix search nixpkgs firefox
nix-collect-garbage