From d456af6ec642c9adcb32325efc38d63e2e564215 Mon Sep 17 00:00:00 2001 From: udeved Date: Sat, 5 Mar 2016 22:15:40 +0100 Subject: [PATCH] [shared] add the manjaro overlays --- shared/manjaro/Packages-Desktop | 60 +++++ shared/manjaro/live-overlay/etc/default/grub | 49 ++++ shared/manjaro/live-overlay/etc/default/tlp | 221 ++++++++++++++++++ shared/manjaro/live-overlay/etc/fstab | 5 + shared/manjaro/live-overlay/etc/issue | 7 + shared/manjaro/live-overlay/etc/pam.d/su | 6 + .../manjaro/live-overlay/etc/samba/smb.conf | 49 ++++ .../live-overlay/etc/sudoers.d/g_wheel | 1 + shared/manjaro/root-overlay/etc/default/grub | 49 ++++ .../manjaro/root-overlay/etc/logrotate.conf | 38 +++ .../manjaro/root-overlay/etc/mkinitcpio.conf | 66 ++++++ .../etc/modprobe.d/blacklist-pcspkr.conf | 2 + shared/manjaro/root-overlay/etc/nsswitch.conf | 19 ++ .../root-overlay/etc/pulse/daemon.conf | 88 +++++++ .../manjaro/root-overlay/etc/pulse/default.pa | 165 +++++++++++++ .../etc/sysctl.d/100-manjaro.conf | 1 + .../root-overlay/etc/sysctl.d/99-sysctl.conf | 1 + 17 files changed, 827 insertions(+) create mode 100644 shared/manjaro/Packages-Desktop create mode 100644 shared/manjaro/live-overlay/etc/default/grub create mode 100644 shared/manjaro/live-overlay/etc/default/tlp create mode 100644 shared/manjaro/live-overlay/etc/fstab create mode 100644 shared/manjaro/live-overlay/etc/issue create mode 100644 shared/manjaro/live-overlay/etc/pam.d/su create mode 100644 shared/manjaro/live-overlay/etc/samba/smb.conf create mode 100644 shared/manjaro/live-overlay/etc/sudoers.d/g_wheel create mode 100644 shared/manjaro/root-overlay/etc/default/grub create mode 100644 shared/manjaro/root-overlay/etc/logrotate.conf create mode 100644 shared/manjaro/root-overlay/etc/mkinitcpio.conf create mode 100644 shared/manjaro/root-overlay/etc/modprobe.d/blacklist-pcspkr.conf create mode 100644 shared/manjaro/root-overlay/etc/nsswitch.conf create mode 100644 shared/manjaro/root-overlay/etc/pulse/daemon.conf create mode 100644 shared/manjaro/root-overlay/etc/pulse/default.pa create mode 100644 shared/manjaro/root-overlay/etc/sysctl.d/100-manjaro.conf create mode 100644 shared/manjaro/root-overlay/etc/sysctl.d/99-sysctl.conf diff --git a/shared/manjaro/Packages-Desktop b/shared/manjaro/Packages-Desktop new file mode 100644 index 0000000..3184307 --- /dev/null +++ b/shared/manjaro/Packages-Desktop @@ -0,0 +1,60 @@ +## Xorg Input Drivers +xf86-input-acecad +xf86-input-aiptek +xf86-input-elographics +xf86-input-evdev +xf86-input-joystick +xf86-input-keyboard +xf86-input-mouse +xf86-input-synaptics +xf86-input-void +xf86-input-wacom + +## Xorg Server and Graphics +xorg-server +xorg-server-utils +xorg-twm +xorg-utils +xorg-xinit +mesa-demos +>multilib lib32-mesa-demos + +## Desktop Utils +xdg-user-dirs +xdg-utils +xdg-su + +## Fonts +terminus-font +ttf-bitstream-vera +ttf-dejavu +ttf-inconsolata +ttf-indic-otf +ttf-liberation +ttf-droid + +## Applications +inxi +dmidecode # for inxi -m output +powertop + +## Sound +alsa-firmware +>openrc alsa-utils-openrc +>systemd alsa-utils + +## Network +mobile-broadband-provider-info +modemmanager +>openrc avahi-openrc +>systemd avahi +nss-mdns # NSS support for mDNS (optdepend for avahi) +>systemd ntp +>openrc ntp-openrc + +## Misc +>openrc consolekit-openrc +>openrc displaymanager-openrc +>openrc pm-utils +>openrc cgmanager-openrc +manjaro-hotfixes diff --git a/shared/manjaro/live-overlay/etc/default/grub b/shared/manjaro/live-overlay/etc/default/grub new file mode 100644 index 0000000..cd7cc5f --- /dev/null +++ b/shared/manjaro/live-overlay/etc/default/grub @@ -0,0 +1,49 @@ +GRUB_DEFAULT=saved +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR="Manjaro" +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" +GRUB_CMDLINE_LINUX="" + +# If you want to enable the save default function, uncomment the following +# line, and set GRUB_DEFAULT to saved. +GRUB_SAVEDEFAULT=true + +# Preload both GPT and MBR modules so that they are not missed +GRUB_PRELOAD_MODULES="part_gpt part_msdos" + +# Uncomment to enable Hidden Menu, and optionally hide the timeout count +#GRUB_HIDDEN_TIMEOUT=5 +#GRUB_HIDDEN_TIMEOUT_QUIET=true + +# Uncomment to use basic console +GRUB_TERMINAL_INPUT=console + +# Uncomment to disable graphical terminal +#GRUB_TERMINAL_OUTPUT=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +GRUB_GFXMODE=auto + +# Uncomment to allow the kernel use the same resolution used by grub +GRUB_GFXPAYLOAD_LINUX=keep + +# Uncomment if you want GRUB to pass to the Linux kernel the old parameter +# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +GRUB_DISABLE_RECOVERY=true + +# Uncomment and set to the desired menu colors. Used by normal and wallpaper +# modes only. Entries specified as foreground/background. +GRUB_COLOR_NORMAL="light-gray/black" +GRUB_COLOR_HIGHLIGHT="green/black" + +# Uncomment one of them for the gfx desired, a image background or a gfxtheme +GRUB_BACKGROUND="/usr/share/grub/background.png" +#GRUB_THEME="/path/to/gfxtheme" + +# Uncomment to get a beep at GRUB start +#GRUB_INIT_TUNE="480 440 1" diff --git a/shared/manjaro/live-overlay/etc/default/tlp b/shared/manjaro/live-overlay/etc/default/tlp new file mode 100644 index 0000000..c33ece3 --- /dev/null +++ b/shared/manjaro/live-overlay/etc/default/tlp @@ -0,0 +1,221 @@ +# ------------------------------------------------------------------------------ +# tlp - Parameters for power save + +# Hint: some features are disabled by default, remove the leading # to enable them + +# Set to 0 to disable/1 to enable TLP +TLP_ENABLE=1 + +# Seconds laptop mode has to to wait after the disk goes idle before doing a sync. +# Non-zero value enables, zero disables laptop mode. +DISK_IDLE_SECS_ON_AC=0 +DISK_IDLE_SECS_ON_BAT=2 + +# Dirty page values (timeouts in secs). +MAX_LOST_WORK_SECS_ON_AC=15 +MAX_LOST_WORK_SECS_ON_BAT=60 + +# Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative +# Important: +# - You *must* disable your distribution's governor settings or conflicts will occur +# - ondemand is sufficient for *almost all* workloads, you should know what you're doing! +#CPU_SCALING_GOVERNOR_ON_AC=ondemand +#CPU_SCALING_GOVERNOR_ON_BAT=ondemand + +# Set the min/max frequency available for the scaling governor. +# Possible values strongly depend on your cpu. For available frequencies see +# tlp-stat output, Section "+++ Processor". +# Hint: Parameters are disabled by default, remove the leading # to enable them, +# otherwise kernel default values are used. +#CPU_SCALING_MIN_FREQ_ON_AC=0 +#CPU_SCALING_MAX_FREQ_ON_AC=0 +#CPU_SCALING_MIN_FREQ_ON_BAT=0 +#CPU_SCALING_MAX_FREQ_ON_BAT=0 + +# Set the cpu "turbo boost" feature: 0=disable / 1=allow +# Requires an Intel Core i processor and kernel 3.7 or later. +# Important: +# - This may conflict with your distribution's governor settings +# - A value of 1 does *not* activate boosting, it just allows it +#CPU_BOOST_ON_AC=1 +#CPU_BOOST_ON_BAT=0 + +# Minimize number of used cpu cores/hyper-threads under light load conditions +SCHED_POWERSAVE_ON_AC=0 +SCHED_POWERSAVE_ON_BAT=1 + +# Kernel NMI Watchdog +# 0=disable (default, saves power) / 1=enable (for kernel debugging only) +NMI_WATCHDOG=0 + +# Change CPU voltages aka "undervolting" - Kernel with PHC patch required +# Freq:voltage pairs are written to /sys/devices/system/cpu/cpu0/cpufreq/phc_controls +# CAUTION: only use this, if you thoroughly understand what you are doing! +#PHC_CONTROLS="F:V F:V F:V F:V" + +# Hard disk devices, separate multiple devices with spaces (default: sda). +# Devices can be specified by disk id too (lookup with: tlp diskid). +DISK_DEVICES="sda sdb" + +# Hard disk advanced power management level: 1(max saving)..254(off) +# Levels 1..127 may spin down the disk. +# Separate values for multiple devices with spaces. +DISK_APM_LEVEL_ON_AC="254 254" +DISK_APM_LEVEL_ON_BAT="254 254" + +# Hard disk spin down timeout: +# 0: spin down disabled +# 1..240: timeouts from 5s to 20min (in units of 5s) +# 241..251: timeouts from 30min to 5.5 hours (in units of 30min) +# (see 'man hdparm' for details) +#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0" +#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0" + +# Select io scheduler for the disk devices: noop/deadline/cfq (Default: cfq) +# Separate values for multiple devices with spaces. +#DISK_IOSCHED="cfq cfq" + +# SATA aggressive link power management (ALPM): +# min_power/medium_power/max_performance +SATA_LINKPWR_ON_AC=max_performance +SATA_LINKPWR_ON_BAT=min_power + +# PCI Express Active State Power Management (PCIe ASPM): +# default/performance/powersave +# Hint: needs kernel boot option pcie_aspm=force on some machines +PCIE_ASPM_ON_AC=performance +PCIE_ASPM_ON_BAT=powersave + +# Radeon graphics clock speed (profile method): low/mid/high/auto/default +# auto = mid on BAT, high on AC; default = use hardware defaults +# (Kernel >= 2.6.35 only, not with fglrx driver!) +RADEON_POWER_PROFILE_ON_AC=high +RADEON_POWER_PROFILE_ON_BAT=low + +# New radeon dynamic power management method (dpm): battery/performance +# (Kernel >= 3.11 only, requires boot option radeon.dpm=1) +RADEON_DPM_STATE_ON_AC=performance +RADEON_DPM_STATE_ON_BAT=battery + +# New radeon dpm performance level: auto/low/high (auto is recommended) +RADEON_DPM_PERF_LEVEL_ON_AC=auto +RADEON_DPM_PERF_LEVEL_ON_BAT=auto + +# WiFi power saving mode: 1=disable/5=enable +# (Linux 2.6.32 and later, some adapters only!) +WIFI_PWR_ON_AC=1 +WIFI_PWR_ON_BAT=5 + +# Disable wake on lan: Y/N +WOL_DISABLE=Y + +# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs). +# A value of 0 disables / >=1 enables power save. +SOUND_POWER_SAVE_ON_AC=0 +SOUND_POWER_SAVE_ON_BAT=1 + +# Disable controller too (HDA only): Y/N +SOUND_POWER_SAVE_CONTROLLER=Y + +# Set to 1 to power off optical drive in UltraBay (ThinkPads only) +# when running on battery. A value of 0 disables this Feature (Default). +# Drive can be powered on again by releasing (and reinserting) the +# eject lever or by pressing the disc eject button on newer models. +# Note: an UltraBay hard disk is never powered off. +BAY_POWEROFF_ON_BAT=0 +# Optical drive device to power off (default sr0) +BAY_DEVICE="sr0" + +# Runtime Power Management for pci(e) bus devices +# (Kernel >= 2.6.35 only): on=disable/auto=enable +RUNTIME_PM_ON_AC=on +RUNTIME_PM_ON_BAT=auto + +# Runtime PM for *all* pci(e) bus devices, expect backlisted ones: +# 0=disable / 1=enable +# Warning: experimental option, could cause system instabilities +RUNTIME_PM_ALL=0 + +# Exclude pci(e) device adresses the following list from Runtime PM +# (separate with spaces). Use lspci to get the adresses (1st column). +#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6" + +# Set to 0 to disable/1 to enable usb autosuspend feature +USB_AUTOSUSPEND=1 + +# Devices from the following list are excluded from usb autosuspend +# (separate with spaces). Use lsusb to get the ids. +# Note: input devices (usbhid) are excluded automatically +#USB_BLACKLIST="1111:2222 3333:4444" + +# WWAN devices are excluded from usb autosuspend: +# 0=do not exclude / 1=exclude +# Note: works for ids 05c6:* 0bdb:* 1199:* only +USB_BLACKLIST_WWAN=1 + +# Set to 1 to disable autosuspend before shutdown/0 to do nothing +# (workaround for usb devices that cause shutdown problems) +#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1 + +# Restore radio device state (bluetooth, wifi, wwan) from previous shutdown +# on system startup: 0=disable/1=enable +# Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below +# are ignored when this is enabled! +RESTORE_DEVICE_STATE_ON_STARTUP=0 + +# Radio devices to disable on startup: bluetooth wifi wwan +#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan" + +# Radio devices to enable on startup: bluetooth wifi wwan +#DEVICES_TO_ENABLE_ON_STARTUP="wifi" + +# Radio devices to disable on shutdown: bluetooth wifi wwan +# (workaround for devices that are blocking shutdown) +#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan" + +# Radio devices to enable on shutdown: bluetooth wifi wwan +# (to prevent other operating systems from missing radios) +#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan" + +# Radio devices to enable when wireless radio switch is turned on: +# bluetooth wifi wwan (Ubuntu + ThinkPad only) +#DEVICES_TO_ENABLE_ON_RADIOSW="wifi wwan" + +# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module required) +# Charging starts when the remaining capacity falls below the START_CHARGE_TRESH +# value and stops when exceeding the STOP_CHARGE_TRESH value. +# Main battery (values in %) +#START_CHARGE_THRESH_BAT0=75 +#STOP_CHARGE_THRESH_BAT0=80 +# Ultrabay or slice battery (values in %) +#START_CHARGE_THRESH_BAT1=75 +#STOP_CHARGE_THRESH_BAT1=80 + +# Set to 1 to disable use of tpacpi-bat on Sandy Bridge or newer Thinkpads +# and force usage of tp-smapi instead +#DISABLE_TPACPIBAT=1 + +# ------------------------------------------------------------------------------ +# tlp-rdw - Parameters for the radio device wizard +# Possible devices: bluetooth/wifi/wwan + +# Hint: parameters are disabled by default, remove the leading # to enable them + +# Radio devices to disable on connect +#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan" +#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan" +#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi" + +# Radio devices to enable on disconnect +#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan" +#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT="" +#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT="" + +# Radio devices to enable/disable when docked +#DEVICES_TO_ENABLE_ON_DOCK="" +#DEVICES_TO_DISABLE_ON_DOCK="" + +# Radio devices to enable/disable when undocked +#DEVICES_TO_ENABLE_ON_UNDOCK="wifi" +#DEVICES_TO_DISABLE_ON_UNDOCK="" + diff --git a/shared/manjaro/live-overlay/etc/fstab b/shared/manjaro/live-overlay/etc/fstab new file mode 100644 index 0000000..0df0cba --- /dev/null +++ b/shared/manjaro/live-overlay/etc/fstab @@ -0,0 +1,5 @@ +# +# /etc/fstab: static file system information +# +# +/dev/mapper/root-image / auto defaults 0 0 diff --git a/shared/manjaro/live-overlay/etc/issue b/shared/manjaro/live-overlay/etc/issue new file mode 100644 index 0000000..88be60a --- /dev/null +++ b/shared/manjaro/live-overlay/etc/issue @@ -0,0 +1,7 @@ + +Manjaro Live ISO (\l) - \s-\r \m. + +Default login "manjaro" with password "manjaro". +"root" login has password "manjaro". + +You can start the installation with "sudo cli-installer". diff --git a/shared/manjaro/live-overlay/etc/pam.d/su b/shared/manjaro/live-overlay/etc/pam.d/su new file mode 100644 index 0000000..a291042 --- /dev/null +++ b/shared/manjaro/live-overlay/etc/pam.d/su @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth sufficient pam_rootok.so +auth sufficient pam_wheel.so trust use_uid +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so diff --git a/shared/manjaro/live-overlay/etc/samba/smb.conf b/shared/manjaro/live-overlay/etc/samba/smb.conf new file mode 100644 index 0000000..075cf9d --- /dev/null +++ b/shared/manjaro/live-overlay/etc/samba/smb.conf @@ -0,0 +1,49 @@ + ##This is the main Samba configuration file. You should read the + ##smb.conf(5) manual page in order to understand the options listed + ##here. Samba has a huge number of configurable options (perhaps too + ##many!) most of which are not shown in this example + ## + ##For a step to step guide on installing, configuring and using samba, + # read the Samba-HOWTO-Collection. This may be obtained from: + # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf + # + # Many working examples of smb.conf files can be found in the + # Samba-Guide which is generated daily and can be downloaded from: + # http://www.samba.org/samba/docs/Samba-Guide.pdf + # + # Any line which starts with a ; (semi-colon) or a # (hash) + # is a comment and is ignored. In this example we will use a # + # for commentry and a ; for parts of the config file that you + # may wish to enable + # + # NOTE: Whenever you modify this file you should run the command "testparm" + # to check that you have not made any basic syntactic errors. + # + [global] + workgroup = MANJARO + server string = Samba Server + log file = /var/log/samba/%m.log + load printers = yes + max log size = 50 + security = user + map to guest = Bad User + guest account = root + usershare path = /var/lib/samba/usershare + usershare max shares = 100 + usershare allow guests = yes + usershare owner only = yes + + + #Windows Internet Name Serving Support Section: + + #WINS Support - Tells the NMBD component of Samba to enable it's WINS Server + ; wins support = yes + + # WINS Server - Tells the NMBD components of Samba to be a WINS Client + # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both + ; wins server = w.x.y.z + + #WINS Proxy - Tells Samba to answer name resolution queries on + # behalf of a non WINS capable client, for this to work there must be + # at least one WINS Server on the network. The default is NO. + ; wins proxy = yes diff --git a/shared/manjaro/live-overlay/etc/sudoers.d/g_wheel b/shared/manjaro/live-overlay/etc/sudoers.d/g_wheel new file mode 100644 index 0000000..8c45359 --- /dev/null +++ b/shared/manjaro/live-overlay/etc/sudoers.d/g_wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL) NOPASSWD: ALL diff --git a/shared/manjaro/root-overlay/etc/default/grub b/shared/manjaro/root-overlay/etc/default/grub new file mode 100644 index 0000000..3279a26 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/default/grub @@ -0,0 +1,49 @@ +GRUB_DEFAULT=saved +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR="Manjaro" +GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX="" + +# If you want to enable the save default function, uncomment the following +# line, and set GRUB_DEFAULT to saved. +GRUB_SAVEDEFAULT=true + +# Preload both GPT and MBR modules so that they are not missed +GRUB_PRELOAD_MODULES="part_gpt part_msdos" + +# Uncomment to enable Hidden Menu, and optionally hide the timeout count +#GRUB_HIDDEN_TIMEOUT=5 +#GRUB_HIDDEN_TIMEOUT_QUIET=true + +# Uncomment to use basic console +GRUB_TERMINAL_INPUT=console + +# Uncomment to disable graphical terminal +#GRUB_TERMINAL_OUTPUT=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +GRUB_GFXMODE=auto + +# Uncomment to allow the kernel use the same resolution used by grub +GRUB_GFXPAYLOAD_LINUX=keep + +# Uncomment if you want GRUB to pass to the Linux kernel the old parameter +# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +GRUB_DISABLE_RECOVERY=true + +# Uncomment and set to the desired menu colors. Used by normal and wallpaper +# modes only. Entries specified as foreground/background. +GRUB_COLOR_NORMAL="light-gray/black" +GRUB_COLOR_HIGHLIGHT="green/black" + +# Uncomment one of them for the gfx desired, a image background or a gfxtheme +GRUB_BACKGROUND="/usr/share/grub/background.png" +#GRUB_THEME="/path/to/gfxtheme" + +# Uncomment to get a beep at GRUB start +#GRUB_INIT_TUNE="480 440 1" diff --git a/shared/manjaro/root-overlay/etc/logrotate.conf b/shared/manjaro/root-overlay/etc/logrotate.conf new file mode 100644 index 0000000..9f8155f --- /dev/null +++ b/shared/manjaro/root-overlay/etc/logrotate.conf @@ -0,0 +1,38 @@ +# see "man logrotate" for details +# rotate log files weekly +weekly + +# keep 1 weeks worth of backlogs +rotate 1 + +# restrict maximum size of log files +size 12M + +# create new (empty) log files after rotating old ones +create + +# uncomment this if you want your log files compressed +compress + +# Logs are moved into directory for rotation +# olddir /var/log/archive + +# Ignore pacman saved files +tabooext + .pacorig .pacnew .pacsave + +# Manjaro packages drop log rotation information into this directory +include /etc/logrotate.d + +/var/log/wtmp { + weekly + create 0664 root utmp + minsize 512K + rotate 1 +} + +/var/log/btmp { + missingok + weekly + create 0600 root utmp + rotate 1 +} diff --git a/shared/manjaro/root-overlay/etc/mkinitcpio.conf b/shared/manjaro/root-overlay/etc/mkinitcpio.conf new file mode 100644 index 0000000..d9027f2 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/mkinitcpio.conf @@ -0,0 +1,66 @@ +# vim:set ft=sh +# MODULES +# The following modules are loaded before any boot hooks are +# run. Advanced users may wish to specify all system modules +# in this array. For instance: +# MODULES="piix ide_disk reiserfs" +MODULES="" + +# BINARIES +# This setting includes any additional binaries a given user may +# wish into the CPIO image. This is run last, so it may be used to +# override the actual binaries included by a given hook +# BINARIES are dependency parsed, so you may safely ignore libraries +BINARIES="" + +# FILES +# This setting is similar to BINARIES above, however, files are added +# as-is and are not parsed in any way. This is useful for config files. +FILES="" + +# HOOKS +# This is the most important setting in this file. The HOOKS control the +# modules and scripts added to the image, and what happens at boot time. +# Order is important, and it is recommended that you do not change the +# order in which HOOKS are added. Run 'mkinitcpio -H ' for +# help on a given hook. +# 'base' is _required_ unless you know precisely what you are doing. +# 'udev' is _required_ in order to automatically load modules +# 'filesystems' is _required_ unless you specify your fs modules in MODULES +# Examples: +## This setup specifies all modules in the MODULES setting above. +## No raid, lvm2, or encrypted root is needed. +# HOOKS="base" +# +## This setup will autodetect all modules for your system and should +## work as a sane default +# HOOKS="base udev autodetect block filesystems" +# +## This setup will generate a 'full' image which supports most systems. +## No autodetection is done. +# HOOKS="base udev block filesystems" +# +## This setup assembles a pata mdadm array with an encrypted root FS. +## Note: See 'mkinitcpio -H mdadm' for more information on raid devices. +# HOOKS="base udev block mdadm encrypt filesystems" +# +## This setup loads an lvm2 volume group on a usb device. +# HOOKS="base udev block lvm2 filesystems" +# +## NOTE: If you have /usr on a separate partition, you MUST include the +# usr, fsck and shutdown hooks. +HOOKS="base udev autodetect modconf block filesystems keyboard keymap fsck usr shutdown" + +# COMPRESSION +# Use this to compress the initramfs image. By default, gzip compression +# is used. Use 'cat' to create an uncompressed image. +#COMPRESSION="gzip" +#COMPRESSION="bzip2" +#COMPRESSION="lzma" +#COMPRESSION="xz" +#COMPRESSION="lzop" +#COMPRESSION="lz4" + +# COMPRESSION_OPTIONS +# Additional options for the compressor +#COMPRESSION_OPTIONS="" diff --git a/shared/manjaro/root-overlay/etc/modprobe.d/blacklist-pcspkr.conf b/shared/manjaro/root-overlay/etc/modprobe.d/blacklist-pcspkr.conf new file mode 100644 index 0000000..b69c086 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/modprobe.d/blacklist-pcspkr.conf @@ -0,0 +1,2 @@ +# this is how you mute annoying beeps in console and shutdown +blacklist pcspkr diff --git a/shared/manjaro/root-overlay/etc/nsswitch.conf b/shared/manjaro/root-overlay/etc/nsswitch.conf new file mode 100644 index 0000000..151e43c --- /dev/null +++ b/shared/manjaro/root-overlay/etc/nsswitch.conf @@ -0,0 +1,19 @@ +# Begin /etc/nsswitch.conf + +passwd: files +group: files +shadow: files + +publickey: files + +hosts: files mdns_minimal [NOTFOUND=return] dns myhostname +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +netgroup: files + +# End /etc/nsswitch.conf diff --git a/shared/manjaro/root-overlay/etc/pulse/daemon.conf b/shared/manjaro/root-overlay/etc/pulse/daemon.conf new file mode 100644 index 0000000..9763501 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/pulse/daemon.conf @@ -0,0 +1,88 @@ +# This file is part of PulseAudio. +# +# PulseAudio is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# PulseAudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with PulseAudio; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for +## more information. Default values are commented out. Use either ; or # for +## commenting. + +; daemonize = no +; fail = yes +; allow-module-loading = yes +; allow-exit = yes +; use-pid-file = yes +; system-instance = no +; local-server-type = user +; enable-shm = yes +; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB +; lock-memory = no +; cpu-limit = no + +; high-priority = yes +; nice-level = -11 + +; realtime-scheduling = yes +; realtime-priority = 5 + +exit-idle-time=0 +; exit-idle-time = 20 +; scache-idle-time = 20 + +; dl-search-path = (depends on architecture) + +; load-default-script-file = yes +; default-script-file = /etc/pulse/default.pa + +; log-target = auto +; log-level = notice +; log-meta = no +; log-time = no +; log-backtrace = 0 + +; resample-method = speex-float-1 +; enable-remixing = yes +; enable-lfe-remixing = no + +; flat-volumes = no + +; rlimit-fsize = -1 +; rlimit-data = -1 +; rlimit-stack = -1 +; rlimit-core = -1 +; rlimit-as = -1 +; rlimit-rss = -1 +; rlimit-nproc = -1 +; rlimit-nofile = 256 +; rlimit-memlock = -1 +; rlimit-locks = -1 +; rlimit-sigpending = -1 +; rlimit-msgqueue = -1 +; rlimit-nice = 31 +; rlimit-rtprio = 9 +; rlimit-rttime = 1000000 + +; default-sample-format = s16le +; default-sample-rate = 44100 +; alternate-sample-rate = 48000 +; default-sample-channels = 2 +; default-channel-map = front-left,front-right + +; default-fragments = 4 +; default-fragment-size-msec = 25 + +; enable-deferred-volume = yes +; deferred-volume-safety-margin-usec = 8000 +; deferred-volume-extra-delay-usec = 0 diff --git a/shared/manjaro/root-overlay/etc/pulse/default.pa b/shared/manjaro/root-overlay/etc/pulse/default.pa new file mode 100644 index 0000000..bcdb191 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/pulse/default.pa @@ -0,0 +1,165 @@ +#!/usr/bin/pulseaudio -nF +# +# This file is part of PulseAudio. +# +# PulseAudio is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# PulseAudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with PulseAudio; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +# This startup script is used only if PulseAudio is started per-user +# (i.e. not in system mode) + +.nofail + +### Load something into the sample cache +#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav +#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav +#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav +#load-sample-lazy pulse-access /usr/share/sounds/generic.wav + +.fail + +### Automatically restore the volume of streams and devices +load-module module-device-restore +load-module module-stream-restore +load-module module-card-restore + +### Automatically augment property information from .desktop files +### stored in /usr/share/application +load-module module-augment-properties + +### Should be after module-*-restore but before module-*-detect +load-module module-switch-on-port-available + +### Load audio drivers statically +### (it's probably better to not load these drivers manually, but instead +### use module-udev-detect -- see below -- for doing this automatically) +#load-module module-alsa-sink +#load-module module-alsa-source device=hw:1,0 +#load-module module-oss device="/dev/dsp" sink_name=output source_name=input +#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input +#load-module module-null-sink +#load-module module-pipe-sink + +### Automatically load driver modules depending on the hardware available +.ifexists module-udev-detect.so +load-module module-udev-detect +.else +### Use the static hardware detection module (for systems that lack udev support) +load-module module-detect +.endif + +### Automatically connect sink and source if JACK server is present +.ifexists module-jackdbus-detect.so +.nofail +load-module module-jackdbus-detect channels=2 +.fail +.endif + +### Automatically load driver modules for Bluetooth hardware +.ifexists module-bluetooth-policy.so +load-module module-bluetooth-policy +.endif + +.ifexists module-bluetooth-discover.so +load-module module-bluetooth-discover +.endif + +### Load several protocols +.ifexists module-esound-protocol-unix.so +load-module module-esound-protocol-unix +.endif +load-module module-native-protocol-unix + +### Network access (may be configured with paprefs, so leave this commented +### here if you plan to use paprefs) +#load-module module-esound-protocol-tcp +load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 +#load-module module-zeroconf-publish + +### Load the RTP receiver module (also configured via paprefs, see above) +#load-module module-rtp-recv + +### Load the RTP sender module (also configured via paprefs, see above) +#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'" +#load-module module-rtp-send source=rtp.monitor + +### Load additional modules from GConf settings. This can be configured with the paprefs tool. +### Please keep in mind that the modules configured by paprefs might conflict with manually +### loaded modules. +.ifexists module-gconf.so +.nofail +load-module module-gconf +.fail +.endif + +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + +### Automatically move streams to the default sink if the sink they are +### connected to dies, similar for sources +load-module module-rescue-streams + +### Make sure we always have a sink around, even if it is a null sink. +load-module module-always-sink + +### Honour intended role device property +load-module module-intended-roles + +### Automatically suspend sinks/sources that become idle for too long +load-module module-suspend-on-idle + +### If autoexit on idle is enabled we want to make sure we only quit +### when no local session needs us anymore. +.ifexists module-console-kit.so +load-module module-console-kit +.endif +.ifexists module-systemd-login.so +load-module module-systemd-login +.endif + +### Enable positioned event sounds +load-module module-position-event-sounds + +### Cork music/video streams when a phone stream is active +#load-module module-role-cork + +### Modules to allow autoloading of filters (such as echo cancellation) +### on demand. module-filter-heuristics tries to determine what filters +### make sense, and module-filter-apply does the heavy-lifting of +### loading modules and rerouting streams. +load-module module-filter-heuristics +load-module module-filter-apply + +# X11 modules should not be started from default.pa so that one daemon +# can be shared by multiple sessions. + +### Load X11 bell module +#load-module module-x11-bell sample=bell-windowing-system + +### Register ourselves in the X11 session manager +#load-module module-x11-xsmp + +### Publish connection data in the X11 root window +#.ifexists module-x11-publish.so +#.nofail +#load-module module-x11-publish +#.fail +#.endif + +### Make some devices default +#set-default-sink output +#set-default-source input diff --git a/shared/manjaro/root-overlay/etc/sysctl.d/100-manjaro.conf b/shared/manjaro/root-overlay/etc/sysctl.d/100-manjaro.conf new file mode 100644 index 0000000..40356f3 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/sysctl.d/100-manjaro.conf @@ -0,0 +1 @@ +vm.swappiness = 1 diff --git a/shared/manjaro/root-overlay/etc/sysctl.d/99-sysctl.conf b/shared/manjaro/root-overlay/etc/sysctl.d/99-sysctl.conf new file mode 100644 index 0000000..91aa631 --- /dev/null +++ b/shared/manjaro/root-overlay/etc/sysctl.d/99-sysctl.conf @@ -0,0 +1 @@ +kernel.sysrq=1