<commit_before>[package]
name        = "holodeck-arcturus"
version     = "20200525.1"
description = "holodeck: services on Arcturus"

requires = [
    "secrets", # this uses /usr/bin/replicator
    "hologram-kde-desktop",
    "hologram-sway-desktop",
    "hologram-dev-tools",
    "hologram-games",
    "hologram-uefi-bootloader-with-luks",
    "hologram-dtp",
    "hologram-monitoring-client",
    "linux-headers", # for wireguard-dkms in hologram-monitoring-client
    # support for Intel CPU/GPU
    "hologram-intel-ucode",
    # support for AMD GPU
    "xf86-video-amdgpu",
    "libva-vdpau-driver",
    "vulkan-radeon",
    "lib32-vulkan-radeon",
    "vulkan-icd-loader",
    "lib32-vulkan-icd-loader",
    "mesa-libgl",
    "lib32-mesa-libgl",
    "mesa-vdpau",
    "lib32-mesa-vdpau",
    # network setup
    "broadcom-wl", # closed source driver for my Wifi module
    "wpa_supplicant",
    # scanner setup
    "sane",
    "hplip",
    "gscan2pdf",
    # additional apps
    "kdeconnect",
    "mpd",
]

# identity

[[file]]
path    = "/etc/hostname"
content = "arcturus"

[[file]]
path    = "/etc/profile.d/prettyprompt.sh"
content = """
    export PRETTYPROMPT_COMMONUSER=stefan
    export PRETTYPROMPT_HOSTCOLOR='0;37'
"""

# network setup: systemd-networkd

[[file]]
path    = "/etc/systemd/network/lan.network"
content = """
    [Match]
    Name=en*

    [Network]
    Address=10.0.0.2/24
    Gateway=10.0.0.1
    DNS=10.0.0.1
"""

[[file]]
path    = "/etc/systemd/network/wlan.network"
content = """
    [Match]
    Name=wlp3s0

    [Network]
    Address=10.0.1.2/24
    DNS=10.0.1.1
"""

# network setup: systemd-resolved

[[symlink]]
path   = "/etc/systemd/system/multi-user.target.wants/systemd-resolved.service"
target = "/usr/lib/systemd/system/systemd-resolved.service"

[[symlink]]
path   = "/usr/share/holo/files/50-arcturus/etc/resolv.conf"
target = "/run/systemd/resolve/resolv.conf"

# network setup: wpa_supplicant

[[symlink]]
path   = "/etc/systemd/system/multi-user.target.wants/wpa_supplicant@wlp3s0.service"
target = "/usr/lib/systemd/system/wpa_supplicant@.service"

[[file]]
path    = "/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf"
content = """
    network={
        ssid="{{.Vars.wifi.ssid}}"
        psk="{{.Vars.wifi.psk}}"
    }
"""
[[symlink]]
path   = "/usr/share/holo/files/50-arcturus-vars/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf.holoscript"
target = "/usr/bin/replicator"

# scanner setup: device permissions

[[file]]
path    = "/etc/udev/rules.d/49-custom-sane.rules"
content = '''
    # HP PhotoSmart C3180
    ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="5611", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
'''
<commit_msg>holodeck-arcturus: effectively disable HDMI audio<commit_after>[package]
name        = "holodeck-arcturus"
version     = "20200616.1"
description = "holodeck: services on Arcturus"

requires = [
    "secrets", # this uses /usr/bin/replicator
    "hologram-kde-desktop",
    "hologram-sway-desktop",
    "hologram-dev-tools",
    "hologram-games",
    "hologram-uefi-bootloader-with-luks",
    "hologram-dtp",
    "hologram-monitoring-client",
    "linux-headers", # for wireguard-dkms in hologram-monitoring-client
    # support for Intel CPU/GPU
    "hologram-intel-ucode",
    # support for AMD GPU
    "xf86-video-amdgpu",
    "libva-vdpau-driver",
    "vulkan-radeon",
    "lib32-vulkan-radeon",
    "vulkan-icd-loader",
    "lib32-vulkan-icd-loader",
    "mesa-libgl",
    "lib32-mesa-libgl",
    "mesa-vdpau",
    "lib32-mesa-vdpau",
    # network setup
    "broadcom-wl", # closed source driver for my Wifi module
    "wpa_supplicant",
    # scanner setup
    "sane",
    "hplip",
    "gscan2pdf",
    # additional apps
    "kdeconnect",
    "mpd",
]

# identity

[[file]]
path    = "/etc/hostname"
content = "arcturus"

[[file]]
path    = "/etc/profile.d/prettyprompt.sh"
content = """
    export PRETTYPROMPT_COMMONUSER=stefan
    export PRETTYPROMPT_HOSTCOLOR='0;37'
"""

# network setup: systemd-networkd

[[file]]
path    = "/etc/systemd/network/lan.network"
content = """
    [Match]
    Name=en*

    [Network]
    Address=10.0.0.2/24
    Gateway=10.0.0.1
    DNS=10.0.0.1
"""

[[file]]
path    = "/etc/systemd/network/wlan.network"
content = """
    [Match]
    Name=wlp3s0

    [Network]
    Address=10.0.1.2/24
    DNS=10.0.1.1
"""

# network setup: systemd-resolved

[[symlink]]
path   = "/etc/systemd/system/multi-user.target.wants/systemd-resolved.service"
target = "/usr/lib/systemd/system/systemd-resolved.service"

[[symlink]]
path   = "/usr/share/holo/files/50-arcturus/etc/resolv.conf"
target = "/run/systemd/resolve/resolv.conf"

# network setup: wpa_supplicant

[[symlink]]
path   = "/etc/systemd/system/multi-user.target.wants/wpa_supplicant@wlp3s0.service"
target = "/usr/lib/systemd/system/wpa_supplicant@.service"

[[file]]
path    = "/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf"
content = """
    network={
        ssid="{{.Vars.wifi.ssid}}"
        psk="{{.Vars.wifi.psk}}"
    }
"""
[[symlink]]
path   = "/usr/share/holo/files/50-arcturus-vars/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf.holoscript"
target = "/usr/bin/replicator"

# scanner setup: device permissions

[[file]]
path    = "/etc/udev/rules.d/49-custom-sane.rules"
content = '''
    # HP PhotoSmart C3180
    ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="5611", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
'''

# audio setup: do not switch to HDMI audio when a screen is powered on

[[file]]
path    = "/usr/share/holo/files/50-arcturus/etc/pulse/default.pa.holoscript"
mode    = "0755"
content = '''
    #!/bin/sed -f
    s/load-module module-switch-on-port-available/#&/
'''

{'fraction_non_alphanumeric': 0.17238950519457652, 'fraction_numerical': 0.029582673005810883, 'mean_word_length': 3.257871064467766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '784011', 'n_tokens_mistral': 2388, 'n_tokens_neox': 2290, 'n_words': 330}