No description
Find a file
2024-03-07 22:39:49 +01:00
home home-manager: Add shell configuration 2024-03-07 22:39:49 +01:00
hosts Change kernel to latest zen kernel for gaming 2024-02-19 20:49:59 +01:00
modules Set nvidia to latest, see PR #293101 on nixpkgs repo 2024-03-04 19:15:49 +01:00
.gitignore Add gitignore 2024-02-12 14:39:51 +01:00
flake.lock Update OS 2024-03-07 21:13:36 +01:00
flake.nix Fix nix experimental features 2024-02-27 21:19:41 +01:00
LICENSE Initial commit 2023-02-01 19:47:00 +01:00
README.md Show diff between revisions (Add nix profile method) 2024-03-06 23:05:20 +01: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

Clean up all useless store from old profiles

sudo nix store gc --debug

Usefull links

Sources