change steamdeck

This commit is contained in:
2023-09-29 20:04:14 +02:00
parent 413a7370db
commit 61d659989f
3 changed files with 8 additions and 6 deletions

View File

@@ -83,14 +83,15 @@
LC_TIME = "de_AT.UTF-8";
};
environment.systemPackages = with pkgs; [
ykfde
firefox
];
users.users.dominik = {
isNormalUser = true;
description = "Dominik Polakovics";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
ykfde
];
};
services.openssh.enable = true;

View File

@@ -16,6 +16,7 @@
"mmc-block"
];
boot.initrd.kernelModules = [
"usbcore"
"usbhid"
"hid-generic" "hid-lenovo" "hid-apple" "hid-roccat"
"hid-logitech-hidpp" "hid-logitech_dj" "hid-microsoft" "hid-cherry"

View File

@@ -17,7 +17,7 @@ YKFDE_STORAGE=/boot/crypt-storage/default
YKFDE_SLOT_CHECK="$(ykinfo -q -"$YKFDE_SLOT")"
[ "$DBG" ] && printf '%s\n' " > YubiKey slot status 'ykinfo -q -$YKFDE_SLOT': $YKFDE_SLOT_CHECK"
printf '%s\n' " > YubiKey slot status 'ykinfo -q -$YKFDE_SLOT': $YKFDE_SLOT_CHECK"
if [ "$YKFDE_SLOT_CHECK" != 1 ]; then
printf '%s\n' "ERROR: Chosen YubiKey slot '$YKFDE_SLOT' isn't configured. Please choose slot configured for 'HMAC-SHA1 Challenge-Response' mode in '/etc/ykfde.conf'"
@@ -26,7 +26,7 @@ fi
YKFDE_SALT="$(dd if=/dev/random bs=1 count=$YKFDE_SALT_LENGTH 2>/dev/null | rbtohex)"
YKFDE_CHALLENGE="$(echo -n $salt | openssl dgst -binary -sha512 | rbtohex)"
YKFDE_RESPONSE="$(ykchalresp -2 -x $YKFDE_CHALLANGE 2>/dev/null)"
YKFDE_RESPONSE="$(ykchalresp -2 -x $YKFDE_CHALLENGE 2>/dev/null)"
YKFDE_K_LUKS ="$(echo | pbkdf2-sha512 $(($YKFDE_KEY_LENGTH / 8)) $YKFDE_ITERATIONS $YKFDE_RESPONSE | rbtohex)"
mkdir -p "$(dirname $YKFDE_STORAGE)"
echo -ne "$YKFDE_SALT\n$YKFDE_ITERATIONS" > $YKFDE_STORAGE