No description
Find a file
Florian RICHER 955a8be587
All checks were successful
check / check (push) Successful in 28s
Merge branch 'main-emacs'
2024-09-15 14:14:41 +02:00
.gitea/workflows Add -y flag in apt install 2024-05-24 21:24:52 +02:00
.vscode Add vscode autocomplete for nix (nixd) 2024-04-28 20:07:42 +02:00
hosts steam: Move to system instead of Flatpak 2024-09-05 22:47:19 +02:00
modules modules(editors) : Add emacs 2024-09-15 14:12:12 +02:00
overlays kwin: Remove syncobj patch 2024-05-31 12:15:48 +02:00
tips tips(kdedev): Migrate to fedora latest and fix configure.sh 2024-09-08 21:05:15 +02:00
.gitignore modules: Move vscode to flatpak 2024-06-04 21:59:55 +02:00
flake.lock modules(editors) : Add emacs 2024-09-15 14:12:12 +02:00
flake.nix modules(editors) : Add emacs 2024-09-15 14:12:12 +02:00
LICENSE Initial commit 2023-02-01 19:47:00 +01:00
README.md Add tips 2024-06-29 11:07:30 +02:00

Usefull commands

Configure

nixos-rebuild switch --flake flake_path_directory#hostname
nix flake update --extra-experimental-features "nix-command flakes"

Show changements between revisions

nix profile diff-closures --profile /nix/var/nix/profiles/system
nix store diff-closures /nix/var/nix/profiles/system-rev1-link /nix/var/nix/profiles/system-rev2-link

Clean system

List all profiles

nix profile history --profile /nix/var/nix/profiles/system

Remove all profiles older than 7 days

sudo nix profile wipe-history --older-than 7d --profile /nix/var/nix/profiles/system
nix profile wipe-history --older-than 7d --profile ~/.local/state/nix/profiles/home-manager

Clean up all useless store from old profiles

sudo nix store gc --debug

error: cached failure of attribute 'nixosConfigurations.perso-desktop.config.system.build.toplevel'

sudo rm -fr /root/.cache/nix/

To limit resources use during build

nixos-rebuild build-vm --cores 16 --max-jobs 1 --flake .#nixos-test

Usefull links

Sources