tl;dr
# /etc/nixos/configuration.nix
{
programs.nix-ld.enable = true;
}
# https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[38;5;214m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\] \$\[\033[00m\] ' |
PS1='\n' # new line | |
PS1="$PS1"'\[\033[32m\]' # change to green | |
PS1="$PS1"'\u@\h ' # user@host<space> | |
PS1="$PS1"'\[\033[35m\]' # change to purple | |
PS1="$PS1"'$MSYSTEM ' # show MSYSTEM | |
PS1="$PS1"'\[\033[33m\]' # change to brownish yellow | |
PS1="$PS1"'\w' # current working directory | |
PS1="$PS1"'\[\033[36m\]' # change color to cyan | |
PS1="$PS1"'`__git_ps1`' # bash function | |
PS1="$PS1"'\[\033[0m\]' # change color |
# https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\] \$\[\033[00m\] ' |
I wanted to explore disk encryption on Linux for a long time now so I decided to give it a try and, after getting some knowledge on the topic, I decided that I wanted to achieve full disk encryption with LVM volumes on top of LUKS so in case the computer is lost not even the partitions layout would be exposed to potential threats.
Since the whole disk will contain encrypted data that the BIOS cannot understand, having a separate device is a requirement for this setup: we need a primary active partition to be available for the BIOS to delegate the boot process to the boot loader.