Skip to content

coglinks/nix

Repository files navigation

Deprecated

Currently using repository is github:coglinks/nixos-config

File structure

  • ./modules/global: contains common modules made to be used by many systems
  • ./modules/<hostname>: contains modules made to be used by specific hosts

Issues

  • missing modules
    • cpufreq_stats
  • tex
  • Errors logged in "non-nix/logs" dir
  • I changed the default location of the hardware configuration.nix. But I didn't setup a method for nix to recognise the file as hardware configuration.nix.

To do

  • Learn how to use utilise papirus-icon-theme
  • nvim doesn't beep when i press esc repeatedly in normal mode

Common setups and fixes

Luks and tpm2

  • Cmd to set partition to unlock at boot:
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/nvme0n1px
  • When above setup breaks:
    • The corresponding luks keyslot and token become useless and have to be deleted
    • The above cmd has to be executed again

Here's how to cleanup the broken parts:

Extract info on the device to check which token and which key it uses:

sudo cryptsetup luksDump /dev/nvme0n1px

For the keyslot:

sudo cryptsetup luksKillSlot /dev/nvme0n1px <keyslotNo>

For the token:

sudo cryptsetup token remove --token-id <tokenNo> /dev/nvme0n1px

About

Not complete for public use. Config has many errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors