From 817b2e5bfa5c13f6fe8f0ed53addf8f971bf20ba Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 14 Feb 2025 16:33:45 +0100 Subject: [PATCH] docs --- modules/android.nix | 12 ++++-------- modules/programs-gnome.nix | 1 + modules/programs.nix | 1 + modules/ssh-fde-unlock.nix | 11 ++++++++--- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/modules/android.nix b/modules/android.nix index 5a9105b..866cf3f 100644 --- a/modules/android.nix +++ b/modules/android.nix @@ -10,20 +10,16 @@ # How to add user to new group: https://superuser.com/a/1352988 users.groups.plugdev = {}; - # `adb devices` returned the error: no permissions (missing udev rules? user is in the plugdev group) - # So I troed two things. The first one had no effect. But the second one fixed it. - - #services.udev.packages = [ - # pkgs.android-udev-rules - #]; - # `lsusb` #=> Bus 001 Device 008: ID 2a70:d001 OnePlus Technology (Shenzhen) Co., Ltd. ONEPLUS A6003 # https://stackoverflow.com/a/53887437 # + # Alternatively: `sudo dmesg -w` + #=> New USB device found, idVendor=18d1, idProduct=d001, bcdDevice= 5.04 + # # sudo udevadm control --reload-rules # - # After adding this, `adb devices` returnes: + # After adding this, `adb devices` returns: #=> List of devices attached #=> 21801e97 sideload # diff --git a/modules/programs-gnome.nix b/modules/programs-gnome.nix index 6ff067c..22baaf5 100644 --- a/modules/programs-gnome.nix +++ b/modules/programs-gnome.nix @@ -25,6 +25,7 @@ gnome-contacts # Contacts gnome-calendar # Calendar + #gnome-clocks # Clock and timer. Very short, hard coded altert sound. ]; }; } diff --git a/modules/programs.nix b/modules/programs.nix index 309493a..68586d6 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -53,6 +53,7 @@ # Office suite. # For spellcheck, see here: https://nixos.wiki/wiki/LibreOffice#Spellcheck libreoffice-fresh + #wps # Alternative office suite. zotero # Collect, organize, cite, and share your research sources anki-bin # Flashcards. #jameica # Hibiscus plugin -> HBCI online banking. Sparkasse-Nürnberg https://www.willuhn.de/wiki/doku.php?id=support:list:banken:spk#nuernberg. diff --git a/modules/ssh-fde-unlock.nix b/modules/ssh-fde-unlock.nix index f9d57ec..1d3fcc4 100644 --- a/modules/ssh-fde-unlock.nix +++ b/modules/ssh-fde-unlock.nix @@ -1,9 +1,14 @@ { config, pkgs, ... }: { # Unlock encrypted root partition remotely with SSH. - # TODO: Some manual steps are required, see https://nixos.wiki/wiki/Remote_LUKS_Unlocking#Prepare_SSH_host_keys - # -> ssh-keygen -t ed25519 -N "" -f /etc/secrets/initrd/ssh_host_ed25519_key # + # TODO: Some manual steps are required, see https://wiki.nixos.org/wiki/Remote_disk_unlocking#Setup + # -> ssh-keygen -t ed25519 -N "" -f /etc/secrets/initrd/ssh_host_ed25519_key + + # Optional: Start Tor in initrd. + # Useful if IP address is non-static, the router does not do DynDNS or if regularly moving the server to a different LAN. + # https://wiki.nixos.org/wiki/Remote_disk_unlocking#Tor_in_initrd + # Additional references: # https://wiki.archlinux.org/title/Dm-crypt/Specialties#Remote_unlocking_of_root_(or_other)_partition @@ -44,7 +49,7 @@ then [ "e1000e" ] else if (config.networking.hostName == "yodaGaming") then [ "tg3" ] - else throw "Please add kernel module of networ card here" + else throw "Please add kernel module of network card here" ); # # dmesg -> enp0s20f0u1u2: renamed from eth0 (yodaTux)