Compare commits

..

4 Commits

7 changed files with 73 additions and 100 deletions

View File

@@ -25,7 +25,6 @@ Wants=signal.service
Wants=spotify.service
Wants=steam.service
Wants=touchpad.service
Wants=wallpaper.timer
Wants=xresources.service
Wants=yubikey-touch-detector.service

View File

@@ -1,5 +0,0 @@
[Service]
Type=oneshot
ExecStart=/usr/bin/env setrandom --recursive --onlylarge --mode=stretch /usr/share/wallpapers
RemainAfterExit=true
PassEnvironment=DISPLAY

View File

@@ -1,9 +0,0 @@
[Unit]
BindsTo=autostart.target
After=windowmanager.target
[Timer]
OnActiveSec=0s
OnCalendar=hourly
Unit=wallpaper.service
RemainAfterElapse=true

View File

@@ -341,12 +341,6 @@ packages:
kwallet:
ubuntu: []
archlinux: ["kwallet", "kwalletmanager"]
wallpapers:
ubuntu: []
archlinux: ["elementary-wallpapers", "deepin-community-wallpapers"]
wallutils:
ubuntu: []
archlinux: ["wallutils"]
pv:
ubuntu: ["pv"]
archlinux: ["pv"]

View File

@@ -371,6 +371,70 @@
- distro == 'archlinux'
- machine.gpu is defined and machine.gpu == 'amd'
- block:
- name: set go version
set_fact:
go_version: "1.17.1"
- name: stat go target directory
stat:
path: /usr/local/go-v{{ go_version }}
register: go_target_stat
- block:
- name: create temporary directory for go download
tempfile:
state: directory
register: go_download
- name: download go
get_url:
url: https://golang.org/dl/go{{ go_version }}.linux-amd64.tar.gz
dest: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
- name: unpack go
unarchive:
src: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
owner: root
group: root
mode: '0755'
dest: "{{ go_download.path }}"
remote_src: true
become: true
- name: install new go version
command: mv "{{ go_download.path }}/go/" /usr/local/go-v{{ go_version }}
become: true
- name: clean up go download directory
file:
path: "{{ go_download.path }}"
state: absent
when: not go_target_stat.stat.exists
- name: link to the current go version
file:
src: /usr/local/go-v{{ go_version }}
dest: /usr/local/go
owner: root
group: root
state: link
force: true
become: true
- name: add go directory to PATH
copy:
dest: /etc/profile.d/go.sh
content: |
PATH=$PATH:/usr/local/go/bin
owner: root
group: root
mode: '0644'
become: true
tags: [go]
- block:
- name: install alacritty build dependencies
package:
@@ -430,7 +494,7 @@
when: not yubikey_touch_detector_binary.stat.exists
- name: build yubikey-touch-detector
shell: env GOPATH=$(pwd) go get -u github.com/maximbaz/yubikey-touch-detector
shell: env GOPATH=$(pwd) GOPATH=/usr/local/go/bin go get -u github.com/maximbaz/yubikey-touch-detector
args:
chdir: "{{ yubikey_touch_detector_build_tempdir.path }}"
when: not yubikey_touch_detector_binary.stat.exists
@@ -507,70 +571,6 @@
when: distro == 'ubuntu'
tags: [signal]
- block:
- name: set go version
set_fact:
go_version: "1.17.1"
- name: stat go target directory
stat:
path: /usr/local/go-v{{ go_version }}
register: go_target_stat
- block:
- name: create temporary directory for go download
tempfile:
state: directory
register: go_download
- name: download go
get_url:
url: https://golang.org/dl/go{{ go_version }}.linux-amd64.tar.gz
dest: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
- name: unpack go
unarchive:
src: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
owner: root
group: root
mode: '0755'
dest: "{{ go_download.path }}"
remote_src: true
become: true
- name: install new go version
command: mv "{{ go_download.path }}/go/" /usr/local/go-v{{ go_version }}
become: true
- name: clean up go download directory
file:
path: "{{ go_download.path }}"
state: absent
when: not go_target_stat.stat.exists
- name: link to the current go version
file:
src: /usr/local/go-v{{ go_version }}
dest: /usr/local/go
owner: root
group: root
state: link
force: true
become: true
- name: add go directory to PATH
copy:
dest: /etc/profile.d/go.sh
content: |
PATH=$PATH:/usr/local/go/bin
owner: root
group: root
mode: '0755'
become: true
tags: [go]
- name: create dotfiles group
group:
name: dotfiles

View File

@@ -319,7 +319,7 @@
changed_when: false
- name: install go binaries for vim
command: /usr/bin/nvim --headless +GoInstallBinaries +qall
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall'
changed_when: false
- name: update vim plugins
@@ -327,7 +327,7 @@
changed_when: false
- name: update go binaries for vim
command: /usr/bin/nvim --headless +GoUpdateBinaries +qall
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'
changed_when: false
- name: get ycm version after update

View File

@@ -1,19 +1,13 @@
_path=("$HOME/bin"
"$HOME/.optbin"
"/usr/local/go/bin"
"/usr/local/sbin"
"/usr/local/bin"
"/usr/sbin"
"/usr/bin"
"/sbin"
"/bin"
"/usr/games")
source /etc/profile
_path=(
"$HOME/bin"
"$HOME/.optbin"
)
PATH=""
for part in ${_path[@]} ; do
PATH="$PATH:${part}"
done
PATH="${PATH#:}"
export PATH
export EDITOR="nvim"