talbergs / OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When during a system build machine looses power, corrupt state may be fixed by:

sudo nix-store --verify --check-contents --repair

Also, This https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sync-before-registering if set to true would eliminate possibility to corrupt system when it shuts down during install.

Update just few of the flake inputs:

nix flake lock --commit-lock-file --update-input nvim

Clean up older generations like so:

ls /boot/efi/loader/entries | wc -l # => 100
sudo nix-collect-garbage --delete-older-than 7d
ls /boot/efi/loader/entries | wc -l # => 100
sudo nixos-rebuild --install-bootloader --flake .# switch
ls /boot/efi/loader/entries | wc -l # => 2

FOR SECRETS

MASTER GUY DOTFILES

Quick neovim for nix

nix shell github:kranzes/nix-config#neovim

On how to clean install

# nix search <installable> <regex>
nix search github:NixOS/nixpkgs htop

Manage quick packages that are kept outside this configuration.

Nix-env installed packages will shadow packages under same name in config.

nix-env -q # list installed
nix-env -e htop # unistall
nix-env -u htop # upgrade
nix-env -i htop # install
# what
nix-env --list-generations
# and SYSTEM generations
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system

Thank you!

Beauty:

About


Languages

Language:Nix 73.0%Language:Shell 15.1%Language:SCSS 9.3%Language:CSS 2.6%