diff --git a/.bashrc b/.bashrc index 3d248d9..b42057e 100644 --- a/.bashrc +++ b/.bashrc @@ -15,6 +15,7 @@ if [ -f /etc/os-release ]; then # Set GCC 13 as default compiler export CC=/usr/bin/gcc-13 export CXX=/usr/bin/g++-13 + export CGO_CFLAGS="-I/usr/include" # Point to GCC 13 headers (fixed path) export CPLUS_INCLUDE_PATH="/usr/include/c++/13:/usr/include/x86_64-linux-gnu/c++/13" diff --git a/config/ansible/tasks/global/symlinks.yml b/config/ansible/tasks/global/symlinks.yml index 01ce476..de68da8 100644 --- a/config/ansible/tasks/global/symlinks.yml +++ b/config/ansible/tasks/global/symlinks.yml @@ -16,7 +16,6 @@ - { src: "$DOTFILES_PATH/config/ssh/config.d", dest: "~/.ssh/config.d" } - { src: "$DOTFILES_PATH/config/starship.toml", dest: "~/.config/starship.toml" } - { src: "$DOTFILES_PATH/.bashrc", dest: "~/.bashrc.extra" } - - { src: "$DOTFILES_PATH/config/autostart", dest: "~/.config/autostart" } - name: Create gitconfig symlink ansible.builtin.file: diff --git a/config/ansible/tasks/workstations/autostart.yml b/config/ansible/tasks/workstations/autostart.yml new file mode 100644 index 0000000..78e4793 --- /dev/null +++ b/config/ansible/tasks/workstations/autostart.yml @@ -0,0 +1,6 @@ +# Mark all files under the real autostart source as executable +- name: Mark all files under dotfiles autostart as executable + ansible.builtin.file: + path: "{{ lookup('env', 'DOTFILES_PATH') }}/config/autostart" + mode: "u+x,g+x,o+x" + recurse: true diff --git a/config/ansible/tasks/workstations/symlinks.yml b/config/ansible/tasks/workstations/symlinks.yml index 9cd5ae6..52d2b49 100644 --- a/config/ansible/tasks/workstations/symlinks.yml +++ b/config/ansible/tasks/workstations/symlinks.yml @@ -12,3 +12,4 @@ follow: false loop: - { src: "$DOTFILES_PATH/vscode/settings.json", dest: "~/.config/Code/User/settings.json" } + - { src: "$DOTFILES_PATH/config/autostart", dest: "~/.config/autostart" } diff --git a/config/ansible/tasks/workstations/workstation.yml b/config/ansible/tasks/workstations/workstation.yml index 7fe3681..c1067f4 100644 --- a/config/ansible/tasks/workstations/workstation.yml +++ b/config/ansible/tasks/workstations/workstation.yml @@ -37,6 +37,9 @@ - name: Include purge LibreOffice tasks ansible.builtin.import_tasks: tasks/workstations/purge-libreoffice.yml + - name: Include autostart tasks + ansible.builtin.import_tasks: tasks/workstations/autostart.yml + - name: Ensure workstation common packages are installed ansible.builtin.package: name: diff --git a/config/autostart/1password.desktop b/config/autostart/1password.desktop old mode 100644 new mode 100755 index 1473349..7747433 --- a/config/autostart/1password.desktop +++ b/config/autostart/1password.desktop @@ -1,3 +1,4 @@ +#!/usr/bin/env xdg-open [Desktop Entry] Name=1Password Exec=/home/menno/.config/autostart/1password.ignition_delay.sh diff --git a/config/autostart/com.rtosta.zapzap.desktop b/config/autostart/com.rtosta.zapzap.desktop old mode 100644 new mode 100755 diff --git a/config/autostart/com.spotify.Client.desktop b/config/autostart/com.spotify.Client.desktop old mode 100644 new mode 100755 diff --git a/config/autostart/io.github.equicord.equibop.desktop b/config/autostart/io.github.equicord.equibop.desktop old mode 100644 new mode 100755 diff --git a/config/autostart/jetbrains-toolbox.desktop b/config/autostart/jetbrains-toolbox.desktop new file mode 100755 index 0000000..908e387 --- /dev/null +++ b/config/autostart/jetbrains-toolbox.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Icon=/home/menno/.local/share/JetBrains/Toolbox/toolbox.svg +Exec=/home/menno/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize +Version=1.0 +Type=Application +Categories=Development +Name=JetBrains Toolbox +StartupWMClass=jetbrains-toolbox +Terminal=false +MimeType=x-scheme-handler/jetbrains; +X-GNOME-Autostart-enabled=true +StartupNotify=false +X-GNOME-Autostart-Delay=10 +X-MATE-Autostart-Delay=10 +X-KDE-autostart-after=panel diff --git a/config/autostart/mimeinfo.cache b/config/autostart/mimeinfo.cache new file mode 100755 index 0000000..37c6411 --- /dev/null +++ b/config/autostart/mimeinfo.cache @@ -0,0 +1,11 @@ +[MIME Cache] +x-scheme-handler/discord=io.github.equicord.equibop.desktop; +x-scheme-handler/jetbrains=jetbrains-toolbox.desktop; +x-scheme-handler/onepassword=1password.desktop; +x-scheme-handler/onepassword8=1password.desktop; +x-scheme-handler/sgnl=org.signal.Signal.desktop; +x-scheme-handler/signalcaptcha=org.signal.Signal.desktop; +x-scheme-handler/spotify=com.spotify.Client.desktop; +x-scheme-handler/tg=org.telegram.desktop.desktop; +x-scheme-handler/tonsite=org.telegram.desktop.desktop; +x-scheme-handler/whatsapp=com.rtosta.zapzap.desktop; diff --git a/config/autostart/org.fkoehler.KTailctl.desktop b/config/autostart/org.fkoehler.KTailctl.desktop old mode 100644 new mode 100755 diff --git a/config/autostart/org.signal.Signal.desktop b/config/autostart/org.signal.Signal.desktop old mode 100644 new mode 100755 index 986eec7..4457386 --- a/config/autostart/org.signal.Signal.desktop +++ b/config/autostart/org.signal.Signal.desktop @@ -1,3 +1,4 @@ +#!/usr/bin/env xdg-open [Desktop Entry] Name=Signal Exec=/home/menno/.config/autostart/org.signal.Signal.ignition_delay.sh diff --git a/config/autostart/org.telegram.desktop.desktop b/config/autostart/org.telegram.desktop.desktop old mode 100644 new mode 100755 diff --git a/config/home-manager/flake.lock b/config/home-manager/flake.lock index 15373a0..d237533 100644 --- a/config/home-manager/flake.lock +++ b/config/home-manager/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1747485343, - "narHash": "sha256-YbsZyuRE1tobO9sv0PUwg81QryYo3L1F3R3rF9bcG38=", + "lastModified": 1747676747, + "narHash": "sha256-LXkWBVqilgx7Pohwqu/ABxDVw+Cmi5/Mj2S2mpUH0Fw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9b5ac7ad45298d58640540d0323ca217f32a6762", + "rev": "72841a4a8761d1aed92ef6169a636872c986c76d", "type": "github" }, "original": {