# Load the appropriate LVM modules
sudo modprobe dm-mod
# Scan the disk for LVM pools
sudo vgscan
# Found one! Now make it active| { | |
| pkgs, | |
| lib, | |
| config, | |
| inputs, | |
| ... | |
| }: | |
| { | |
| packages = with pkgs; [ |
| { pkgs, lib, config, inputs, ... }: | |
| { | |
| # https://devenv.sh/basics/ | |
| env.GREET = "devenv"; | |
| # https://devenv.sh/packages/ | |
| packages = [ pkgs.cargo-ndk ]; | |
| # https://devenv.sh/languages/ |
YOu can use mycli helper to get a syntax hightlighted and multiline SQL interpreter.
mycli -u masum-db -h localhost -D bookmyshowwhere bookmyshow is the database name, localhost is the hostname, masum-db is the user accessing from the hostname.
Or use the traditional mariadb or mysql.
Refind is a beautiful and customisable boot manager. It can be installed easily on NixOS by a simple command.
Run the following commands to get a shell with required components.
nix-shell -p refind efibootmgr sbsigntoolNow you can run refind-install to install the boot manager on to your EFI.
| Needs _7zz from nixpkgs | |
| 7zz a -tzip -pTHISISTHEPASSWORD -mem=AES256 archive.zip hello.txt | |
| 7zz x archive.zip -pTHISISTHEPASSWORD |
Use a login shell mode instead, it will initiate the client user's profile and rc scripts. It also prevents the client user shell from inheriting host env vars.
su -l example-user
cat command using pipe | can only capture data from stdout.
Use this to capture data from stderr as well. Here less is used as pipe destination.
Sometimes after BIOS updates, Linux boot entry can be missing from Boot menu. This happens with BIOS updates auto clearing secure boot keys and EFI variables.
it can be solved by mounting the EFI partition from a Windows system.
- Mount the efi parition using
diskpartusing elevated Command Promptlist disk"Look for the disk, usually 0select disk 0list partitionLook for a "Primary parition"
select partition 6partition 6 in my case, but usually 0