emillassen / nix-conf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My NixOS config using Flakes and Home Manager

Initial setup for a new device

  1. Boot from a USB stick with the latest NixOS release
  2. Change keyboard layout to match device and test that it is correct
  3. Logon to Wi-Fi
  4. cd /tmp
  5. git clone https://github.com/emillassen/nix-conf.git
  6. cd nix-conf/nixos
  7. nano -L /tmp/secret.key
  8. Enter the desired password for LUKS encryption and save the file
  9. cat /tmp/secret.key to make sure that the output matches your desired password and that it is without any trailing linebreaks
  10. sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/nix-conf/nixos/disks.nix
  11. sudo nixos-install --root /mnt --flake /tmp/nix-conf#fw13 --no-root-passwd
  12. Select y to everything
  13. Restart and remove the USB stick
  14. Logon to Wi-Fi
  15. cd ~/Documents
  16. git clone https://github.com/emillassen/nix-conf.git
  17. cdnix && git remote set-url origin git@github.com:emillassen/nix-conf.git

Manual changes

  1. Enroll fingerprints using fprintd-enroll
  2. Login to Nextcloud Desktop client
  3. nvim ~/.config/Nextcloud/nextcloud.cfg
  4. Paste maxChunkSize=50000000 under [General]

GNOME changes

  1. gsettings set org.gnome.desktop.interface color-scheme prefer-dark
  2. gsettings set org.gnome.desktop.interface show-battery-percentage true
  3. gsettings set org.gnome.desktop.interface text-scaling-factor 1.25
  4. gsettings set org.gnome.desktop.peripherals.touchpad speed 0.1
  5. gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
  6. gsettings set org.gnome.desktop.peripherals.mouse accel-profile flat
  7. gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
  8. gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled false
  9. gsettings set org.gnome.settings-daemon.plugins.power idle-dim false

YubiKey Setup

  1. Download pub.asc from Bitwarden
  2. Run the following commands:
cd ~/Downloads/
gpg --keyid-format 0xlong --import pub.asc
gpg --keyid-format 0xlong --card-status
KEY_ID=0x0000000000000000 (the sec# key)
ssh-add -L | awk  '{print $1 " " $2 " emil@emillassen.com"}' | tee ~/.ssh/emillassen.pub
chmod 0600 ~/.ssh/emillassen.pub

Display color profile

  1. Download the .icc profile from https://www.notebookcheck.net/Framework-Laptop-13-5-Ryzen-7-7840U-review-So-much-better-than-the-Intel-version.756613.0.html
  2. Run the following commands:
cd ~/Downloads/
colormgr import-profile BOE_CQ_______NE135FBM_N41_03.icm
colormgr get-devices
colormgr get-profiles
colormgr device-add-profile `Device ID` `Profile ID`
  1. Go to Settings -> Color, select the new color profile, and enable it for all users

About


Languages

Language:Shell 76.7%Language:Nix 23.3%