Git Product home page Git Product logo

nix-conf's Introduction

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 [email protected]: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 " [email protected]"}' | 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

nix-conf's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.