nixos/README.md

37 lines
700 B
Markdown
Raw Normal View History

2023-08-20 00:16:38 +02:00
# Configure
```bash
nixos-rebuild switch --flake flake_path_directory#hostname
2023-08-20 00:48:31 +02:00
```
2024-02-02 22:23:20 +01:00
```bash
nix flake update --extra-experimental-features "nix-command flakes"
```
2024-02-17 19:09:54 +01:00
# Usefull link
- https://api.github.com/rate_limit
2024-02-27 21:23:18 +01:00
# Clean system
List all profiles
```bash
nix profile history --profile /nix/var/nix/profiles/system
```
Remove all profiles older than 7 days
```bash
sudo nix profile wipe-history --older-than 7d --profile /nix/var/nix/profiles/system
```
Clean up all useless store from old profiles
```bash
sudo nix store gc --debug
```
2023-08-20 01:09:30 +02:00
# Sources
- https://github.com/ryan4yin/nix-config/tree/v0.0.2
- https://github.com/LudovicoPiero/dotfiles
2023-08-20 12:39:36 +02:00
- https://github.com/donovanglover/nix-config/