+++ /dev/null
-# linux-config
-
-System configuration files for Linux. These usually should be copied somewhere into `/etc`.
+++ /dev/null
-#!/bin/bash
-
-# When using the Arch Linux mkinitcpio encrypt if the file /crypto_keyfile.bin
-# exists in the initramfs then it will be used to attempt unlocking.
-# 1. dd if=/dev/urandom of=/crypto_keyfile.bin bs=1 count=512
-# 2. Add /crypto_keyfile.bin to FILES in /etc/mkinitcpio.conf
-# 3. mkinitcpio -p linux
-# 4. systemctl enable disable-crypto_keyfiles@$(systemd-escape /dev/disk/by-id/xxx).service
-# 5. Run this script when you want to reboot without a passphrase
-
-
-crypto_keyfile="/crypto_keyfile.bin"
-reboot_cmd="${1:-sudo reboot}"
-
-if [ ! -f "$crypto_keyfile" ]; then
- echo "Failed to find $crypto_keyfile"
- exit 1
-fi
-
-readarray -t devnames < <(
- find \
- /etc/systemd/system/basic.target.wants/ \
- -maxdepth 1 \
- -name 'disable-crypto_keyfile@*' \
- -printf '%f\0' \
- | xargs -0 -n1 systemd-escape -u --instance
-)
-
-if [ ${#devnames[@]} = 0 ]; then
- echo "Failed to find your encrypted device. You must have disable-crypto_keyfile@.service enabled."
- exit 1
-fi
-
-echo -n "Enter password for devices: "
-read -r -s pw
-echo ""
-for devname in "${devnames[@]}"; do
- echo "Adding key to $devname"
- sudo cryptsetup luksAddKey "$devname" "$crypto_keyfile" --new-key-slot 7 <<EOF
-${pw}
-EOF
-done
-
-$reboot_cmd
+++ /dev/null
-timeout 5
-textonly true
-textmode 1024
-
-scanfor internal,external,optical,manual
-fold_linux_kernels false
-extra_kernel_version_strings linux-lts,linux
-default_selection linux-lts
+++ /dev/null
-"Boot" "rw root=/dev/mapper/somevg-somelv cryptdevice=UUID=some-uuid:crypt-somename resume=/dev/somevg/swap initrd=/intel-ucode.img initrd=/initramfs-%v.img"
+++ /dev/null
-options snd_hda_intel power_save=1
-options snd_ac97_codec power_save=1
+++ /dev/null
-blacklist pcspkr
+++ /dev/null
-[Unit]
-Description=Disable /crypto_keyfile.bin on every boot
-After=basic.target
-
-[Service]
-Type=oneshot
-ExecStart=/sbin/cryptsetup luksRemoveKey %I /crypto_keyfile.bin
-SuccessExitStatus=2
-
-[Install]
-WantedBy=basic.target
+++ /dev/null
-[Unit]
-Description=Fix suspend
-After=basic.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/bash -c 'for x in EHC1 EHC2 XHC; do echo $x > /proc/acpi/wakeup; done'
-
-[Install]
-WantedBy=basic.target
+++ /dev/null
-[Unit]
-Description=Disable power management on all HDDs
-
-[Service]
-Type=oneshot
-ExecStart=/sbin/hdparm -B 255 /dev/disk/by-id/%i
-
-[Install]
-WantedBy=multi-user.target
+++ /dev/null
-[Unit]
-Description=Set nouveau pstate
-After=basic.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/bash -c 'echo AUTO > /sys/kernel/debug/dri/0/pstate'
-
-[Install]
-WantedBy=basic.target
+++ /dev/null
-# PCI Runtime Power Management
-ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto"
-
-# SATA Active Link Power Management
-ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"
+++ /dev/null
-# Flirc USB User-Mode Driver
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0000", MODE="0666"
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0001", MODE="0666"
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0002", MODE="0666"