From 95bb223a7763f5c7cee3a09c121479081c35a713 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 16 Mar 2025 14:50:07 +0100 Subject: update --- .local/hosts/swift/boot/loader/entries/arch.conf | 5 ++++ .local/hosts/swift/boot/loader/entries/arch2.conf | 7 +++++ .local/hosts/swift/boot/loader/loader.conf | 3 ++ .../hosts/swift/etc/X11/xorg.conf.d/10-input.conf | 7 +++++ .../swift/etc/X11/xorg.conf.d/10-keyboard.conf | 6 ++++ .../hosts/swift/etc/X11/xorg.conf.d/20-intel.conf | 4 +++ .local/hosts/swift/etc/backupignore | 32 ++++++++++++++++++++++ .local/hosts/swift/etc/fstab | 14 ++++++++++ .local/hosts/swift/etc/modprobe.d/swift5.conf | 10 +++++++ .local/hosts/swift/etc/nsswitch.conf | 19 +++++++++++++ .local/hosts/swift/etc/qemu/bridge.conf | 1 + .local/hosts/swift/etc/resolv.conf | 1 + .local/hosts/swift/etc/smtpd/smtpd.conf | 20 ++++++++++++++ .local/hosts/swift/etc/sudoers.d/01_marc | 1 + .../swift/etc/systemd/network/20-wired.network | 8 ++++++ .../swift/etc/systemd/network/25-wireless.network | 8 ++++++ .../hosts/swift/etc/systemd/network/bind.network | 5 ++++ .../hosts/swift/etc/systemd/network/bridge.netdev | 4 +++ .../hosts/swift/etc/systemd/network/bridge.network | 5 ++++ .local/hosts/swift/etc/systemd/resolved.conf | 3 ++ .../swift/etc/udev/rules.d/95-hdmi-plug.rules | 5 ++++ .local/hosts/swift/etc/udev/rules.d/hdmi.rules | 1 + 22 files changed, 169 insertions(+) create mode 100755 .local/hosts/swift/boot/loader/entries/arch.conf create mode 100755 .local/hosts/swift/boot/loader/entries/arch2.conf create mode 100755 .local/hosts/swift/boot/loader/loader.conf create mode 100644 .local/hosts/swift/etc/X11/xorg.conf.d/10-input.conf create mode 100644 .local/hosts/swift/etc/X11/xorg.conf.d/10-keyboard.conf create mode 100644 .local/hosts/swift/etc/X11/xorg.conf.d/20-intel.conf create mode 100644 .local/hosts/swift/etc/backupignore create mode 100644 .local/hosts/swift/etc/fstab create mode 100644 .local/hosts/swift/etc/modprobe.d/swift5.conf create mode 100644 .local/hosts/swift/etc/nsswitch.conf create mode 100644 .local/hosts/swift/etc/qemu/bridge.conf create mode 100644 .local/hosts/swift/etc/resolv.conf create mode 100644 .local/hosts/swift/etc/smtpd/smtpd.conf create mode 100644 .local/hosts/swift/etc/sudoers.d/01_marc create mode 100644 .local/hosts/swift/etc/systemd/network/20-wired.network create mode 100644 .local/hosts/swift/etc/systemd/network/25-wireless.network create mode 100644 .local/hosts/swift/etc/systemd/network/bind.network create mode 100644 .local/hosts/swift/etc/systemd/network/bridge.netdev create mode 100644 .local/hosts/swift/etc/systemd/network/bridge.network create mode 100644 .local/hosts/swift/etc/systemd/resolved.conf create mode 100644 .local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules create mode 100644 .local/hosts/swift/etc/udev/rules.d/hdmi.rules (limited to '.local/hosts/swift') diff --git a/.local/hosts/swift/boot/loader/entries/arch.conf b/.local/hosts/swift/boot/loader/entries/arch.conf new file mode 100755 index 0000000..5392c64 --- /dev/null +++ b/.local/hosts/swift/boot/loader/entries/arch.conf @@ -0,0 +1,5 @@ +title Yoda Arch Linux +linux /vmlinuz-linux +initrd /intel-ucode.img +initrd /initramfs-linux.img +options root=/dev/disk/by-uuid/8c89d665-a17b-47da-aa19-4c855f134d54 net.ifnames=0 rw acpi_osi=Linux acpi_backlight=video diff --git a/.local/hosts/swift/boot/loader/entries/arch2.conf b/.local/hosts/swift/boot/loader/entries/arch2.conf new file mode 100755 index 0000000..69d70b6 --- /dev/null +++ b/.local/hosts/swift/boot/loader/entries/arch2.conf @@ -0,0 +1,7 @@ +title Yoda2 Arch Linux +linux /vmlinuz-linux +initrd /intel-ucode.img +initrd /initramfs-linux.img +#options root=/dev/disk/by-uuid/8c89d665-a17b-47da-aa19-4c855f134d54 net.ifnames=0 rw acpi_osi=Linux acpi_backlight=video +options root=/dev/disk/by-uuid/fd0bd5d9-abfd-46e2-bbec-cc5042c19507 net.ifnames=0 rw acpi_osi=Linux acpi_backlight=video +#options root=/dev/disk/by-uuid/fd0bd5d9-abfd-46e2-bbec-cc5042c19507 net.ifnames=0 rw acpi_osi=Linux acpi_backlight=video snd_sof_intel_hda_common.hda_model=alc255-acer diff --git a/.local/hosts/swift/boot/loader/loader.conf b/.local/hosts/swift/boot/loader/loader.conf new file mode 100755 index 0000000..340ea34 --- /dev/null +++ b/.local/hosts/swift/boot/loader/loader.conf @@ -0,0 +1,3 @@ +default arch2 +timeout 4 +console-mode max diff --git a/.local/hosts/swift/etc/X11/xorg.conf.d/10-input.conf b/.local/hosts/swift/etc/X11/xorg.conf.d/10-input.conf new file mode 100644 index 0000000..ae48884 --- /dev/null +++ b/.local/hosts/swift/etc/X11/xorg.conf.d/10-input.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "HP 3 button mouse" + Driver "libinput" + Option "ScrollMethod" "button" + Option "ScrollButton" "2" + Option "NaturalScrolling" "on" +EndSection diff --git a/.local/hosts/swift/etc/X11/xorg.conf.d/10-keyboard.conf b/.local/hosts/swift/etc/X11/xorg.conf.d/10-keyboard.conf new file mode 100644 index 0000000..131f8f3 --- /dev/null +++ b/.local/hosts/swift/etc/X11/xorg.conf.d/10-keyboard.conf @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "Keyboard Defaults" + MatchIsKeyboard "yes" + Option "XkbLayout" "fr" + Option "XkbOptions" "caps:super,altwin:menu_win" +EndSection diff --git a/.local/hosts/swift/etc/X11/xorg.conf.d/20-intel.conf b/.local/hosts/swift/etc/X11/xorg.conf.d/20-intel.conf new file mode 100644 index 0000000..28e460c --- /dev/null +++ b/.local/hosts/swift/etc/X11/xorg.conf.d/20-intel.conf @@ -0,0 +1,4 @@ +Section "ServerLayout" + Identifier "Main" + Option "Xinerama" "0" +EndSection diff --git a/.local/hosts/swift/etc/backupignore b/.local/hosts/swift/etc/backupignore new file mode 100644 index 0000000..693cfa4 --- /dev/null +++ b/.local/hosts/swift/etc/backupignore @@ -0,0 +1,32 @@ +# file patterns to be excluded from backup +/backup +.history/ +.cache/ +.cargo/ +.rustup/ +.npm/ +Cache/ +cache/ +GPUCache +CacheStorage +go/pkg/ +keybase/ +sdk/ +tmp/ +kernel-build/ +kernel-build.old/ +.xsession-errors +/var/lib/docker +/var/lib/flatpak +/var/lib/systemd/coredump/ +.config/chromium/ +.config/discord/ +.config/Slack/ +.config/Signal/ +.config/spotify/ +.mozilla/firefox/ +.thunderbird/xgfazjt1.default/ImapMail/ +.thunderbird/xgfazjt1.default/global-messages-db.sqlite +*.journal +*.log +*.o diff --git a/.local/hosts/swift/etc/fstab b/.local/hosts/swift/etc/fstab new file mode 100644 index 0000000..00d3167 --- /dev/null +++ b/.local/hosts/swift/etc/fstab @@ -0,0 +1,14 @@ +# /dev/nvme1n1p5 +UUID=fd0bd5d9-abfd-46e2-bbec-cc5042c19507 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 1 + +# /dev/nvme1n1p1 +UUID=120F-B472 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 + +# /dev/nvme1n1p3 +UUID=E23C1C4C3C1C1DDB /mnt/windows ntfs-3g gid=1000,uid=1000,dmask=022,fmask=133,noauto 0 0 + +# /dev/nvme0n1p1 +UUID=8c89d665-a17b-47da-aa19-4c855f134d54 /data xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 2 + +# Sony walkman NW-A55L external flash +/dev/sdb1 /mnt/sdb1 exfat noauto,gid=20,uid=501,dmask=002,fmask=113 0 0 diff --git a/.local/hosts/swift/etc/modprobe.d/swift5.conf b/.local/hosts/swift/etc/modprobe.d/swift5.conf new file mode 100644 index 0000000..bda0f22 --- /dev/null +++ b/.local/hosts/swift/etc/modprobe.d/swift5.conf @@ -0,0 +1,10 @@ +#options snd_hda_intel model=dell-headset-multi +#options snd_hda_intel power_save=1 +#options snd-intel-dspcfg dsp_driver=1 +options snd_sof_intel_hda_common hda_model=alc255-acer + +options i915 enable_fbc=1 +options i915 enable_psr=1 disable_power_well=0 +options i915 modeset=1 + +#blacklist snd_soc_skl diff --git a/.local/hosts/swift/etc/nsswitch.conf b/.local/hosts/swift/etc/nsswitch.conf new file mode 100644 index 0000000..392c640 --- /dev/null +++ b/.local/hosts/swift/etc/nsswitch.conf @@ -0,0 +1,19 @@ +# Name Service Switch configuration file. +# See nsswitch.conf(5) for details. + +passwd: files systemd +group: files [SUCCESS=merge] systemd +shadow: files + +publickey: files + +# hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns +hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +netgroup: files diff --git a/.local/hosts/swift/etc/qemu/bridge.conf b/.local/hosts/swift/etc/qemu/bridge.conf new file mode 100644 index 0000000..a573665 --- /dev/null +++ b/.local/hosts/swift/etc/qemu/bridge.conf @@ -0,0 +1 @@ +allow virbr0 diff --git a/.local/hosts/swift/etc/resolv.conf b/.local/hosts/swift/etc/resolv.conf new file mode 100644 index 0000000..a336b7f --- /dev/null +++ b/.local/hosts/swift/etc/resolv.conf @@ -0,0 +1 @@ +nameserver 9.9.9.9 diff --git a/.local/hosts/swift/etc/smtpd/smtpd.conf b/.local/hosts/swift/etc/smtpd/smtpd.conf new file mode 100644 index 0000000..ac4dabf --- /dev/null +++ b/.local/hosts/swift/etc/smtpd/smtpd.conf @@ -0,0 +1,20 @@ +# $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $ + +# This is the smtpd server system-wide configuration file. +# See smtpd.conf(5) for more information. + +table aliases file:/etc/smtpd/aliases +table secrets file:/etc/smtpd/secrets + +# To accept external mail, replace with: listen on all +# +listen on localhost + +action "local" maildir alias +action "relay" relay host smtps://mvertes@smtp.free.fr auth + +# Uncomment the following to accept external mail for domain "example.org" +# +# match from any for domain "example.org" action "local" +match for local action "local" +match for any action "relay" diff --git a/.local/hosts/swift/etc/sudoers.d/01_marc b/.local/hosts/swift/etc/sudoers.d/01_marc new file mode 100644 index 0000000..9ae91f4 --- /dev/null +++ b/.local/hosts/swift/etc/sudoers.d/01_marc @@ -0,0 +1 @@ +marc ALL=(ALL) NOPASSWD: ALL diff --git a/.local/hosts/swift/etc/systemd/network/20-wired.network b/.local/hosts/swift/etc/systemd/network/20-wired.network new file mode 100644 index 0000000..9ac4295 --- /dev/null +++ b/.local/hosts/swift/etc/systemd/network/20-wired.network @@ -0,0 +1,8 @@ +[Match] +Name=e* + +[Network] +DHCP=ipv4 + +[DHCP] +RouteMetric=10 diff --git a/.local/hosts/swift/etc/systemd/network/25-wireless.network b/.local/hosts/swift/etc/systemd/network/25-wireless.network new file mode 100644 index 0000000..3bb9c39 --- /dev/null +++ b/.local/hosts/swift/etc/systemd/network/25-wireless.network @@ -0,0 +1,8 @@ +[Match] +Name=wl* + +[Network] +DHCP=ipv4 + +[DHCP] +RouteMetric=20 diff --git a/.local/hosts/swift/etc/systemd/network/bind.network b/.local/hosts/swift/etc/systemd/network/bind.network new file mode 100644 index 0000000..c0313fe --- /dev/null +++ b/.local/hosts/swift/etc/systemd/network/bind.network @@ -0,0 +1,5 @@ +[Match] +Name=wl* + +[Network] +Bridge=br0 diff --git a/.local/hosts/swift/etc/systemd/network/bridge.netdev b/.local/hosts/swift/etc/systemd/network/bridge.netdev new file mode 100644 index 0000000..fe9c2ad --- /dev/null +++ b/.local/hosts/swift/etc/systemd/network/bridge.netdev @@ -0,0 +1,4 @@ +[NetDev] +Name=br0 +Kind=bridge +MACAddress=3c:f0:11:73:77:51 diff --git a/.local/hosts/swift/etc/systemd/network/bridge.network b/.local/hosts/swift/etc/systemd/network/bridge.network new file mode 100644 index 0000000..684ce83 --- /dev/null +++ b/.local/hosts/swift/etc/systemd/network/bridge.network @@ -0,0 +1,5 @@ +[Match] +Name=br0 + +[Network] +Address=10.0.2.1/24 diff --git a/.local/hosts/swift/etc/systemd/resolved.conf b/.local/hosts/swift/etc/systemd/resolved.conf new file mode 100644 index 0000000..186c2ec --- /dev/null +++ b/.local/hosts/swift/etc/systemd/resolved.conf @@ -0,0 +1,3 @@ +[Resolve] +DNSSEC=no +DNSOverTLS=no diff --git a/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules b/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules new file mode 100644 index 0000000..465eada --- /dev/null +++ b/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules @@ -0,0 +1,5 @@ +ACTION=="change", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" + +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="25a4", ATTRS{idProduct}=="9311", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" + +ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="25a4", ATTRS{idProduct}=="9311", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" diff --git a/.local/hosts/swift/etc/udev/rules.d/hdmi.rules b/.local/hosts/swift/etc/udev/rules.d/hdmi.rules new file mode 100644 index 0000000..ec06147 --- /dev/null +++ b/.local/hosts/swift/etc/udev/rules.d/hdmi.rules @@ -0,0 +1 @@ +KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" -- cgit v1.2.3