update
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
vars_prompt:
|
||||
|
||||
roles:
|
||||
- packages
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
#- name: set gnome config
|
||||
# become_user: user
|
||||
# dconf:
|
||||
# key: "{{ item.key }}"
|
||||
# value: "{{ item.value }}"
|
||||
# with_items: "{{ dconf }}"
|
||||
- name: set gnome config
|
||||
become_user: user
|
||||
dconf:
|
||||
key: "{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
with_items: "{{ dconf }}"
|
||||
|
||||
- name: check if dotfiles is installed
|
||||
become_user: user
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
dconf:
|
||||
# - {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings', value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"}
|
||||
# - {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding', value: "'<Super>t'"}
|
||||
# - {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command', value: "'terminator'"}
|
||||
# - {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name', value: "'Terminal'"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings', value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding', value: "'<Super>t'"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command', value: "'terminator'"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name', value: "'Terminal'"}
|
||||
# - {key: '/org/gnome/desktop/wm/keybindings/close', value: "['<Alt>F4']"}
|
||||
# - {key: '/org/gnome/desktop/wm/keybindings/switch-to-workspace-left', value: "['<Control><Super>Left']"}
|
||||
# - {key: '/org/gnome/desktop/wm/keybindings/switch-to-workspace-right', value: "['<Control><Super>Right']"}
|
||||
@@ -21,20 +21,20 @@ dconf:
|
||||
# #- {key: '/org/gnome/desktop/interface/font-name', value: "'FuraMono Nerd Font 11'"}
|
||||
# #- {key: '/org/gnome/desktop/wm/preferences/titlebar-font', value: "'FuraMono Nerd Font 11'"}
|
||||
# - {key: '/org/gnome/desktop/sound', value: "true"}
|
||||
# - {key: '/org/gnome/shell/favorite-apps', value: "['io.gitlab.librewolf-community.desktop', 'brave-browser.desktop', 'terminator.desktop', 'org.gnome.Nautilus.desktop']"}
|
||||
- {key: '/org/gnome/shell/favorite-apps', value: "['pop-cosmic-applications.desktop', 'io.gitlab.librewolf-community.desktop', 'com.brave.Browser.desktop', 'terminator.desktop', 'org.gnome.Nautilus.desktop']"}
|
||||
# - {key: '/org/gnome/shell/enabled-extensions', value: "['pop-shell@system76.com','dash-to-dock@micxgx.gmail.com', 'system76-power@system76.com']"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/tile-by-default', value: "true"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/gap-inner', value: "uint32 1"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/gap-outer', value: "uint32 1"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/pop-workspace-down', value: "@as []"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/pop-workspace-up', value: "@as []"}
|
||||
- {key: '/org/gnome/shell/extensions/pop-shell/tile-by-default', value: "true"}
|
||||
- {key: '/org/gnome/shell/extensions/pop-shell/gap-inner', value: "uint32 1"}
|
||||
- {key: '/org/gnome/shell/extensions/pop-shell/gap-outer', value: "uint32 1"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/pop-workspace-down', value: "['<Shift><Super>Down','<Shift><Super>J']"}
|
||||
# - {key: '/org/gnome/shell/extensions/pop-shell/pop-workspace-up', value: "['<Shift><Super>Up','<Shift><Super>K',]"}
|
||||
# - {key: '/org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size', value: "32"}
|
||||
# - {key: '/org/gnome/shell/extensions/dash-to-dock/show-trash', value: "false"}
|
||||
# - {key: '/org/gnome/shell/extensions/dash-to-dock/show-mounts', value: "false"}
|
||||
# - {key: '/org/gnome/shell/extensions/dash-to-dock/apply-custom-theme', value: "true"}
|
||||
# - {key: '/org/gnome/shell/extensions/dash-to-dock/multi-monitor', value: "true"}
|
||||
# - {key: '/org/gnome/desktop/peripherals/touchpad', value: "false"}
|
||||
# #s- {key: '/org/gnome/desktop/default-applications/terminal', value: "'exec /usr/bin/terminator'"}
|
||||
- {key: '/org/gnome/desktop/default-applications/terminal', value: "'exec /usr/bin/terminator'"}
|
||||
# - {key: '/org/gnome/mutter/keybindings/toggle-tiled-left', value: "@as []"}
|
||||
# - {key: '/org/gnome/mutter/keybindings/toggle-tiled-right', value: "@as []"}
|
||||
# - {key: '/org/gnome/desktop/peripherals/touchpad/natural-scroll', value: "false"}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
nix_version: 2.16.1
|
||||
installer_checksum: sha512:4edf245baf9641843b6bb750a1889e0266bace6df03cf90845c9c6279db4a3c2d1d100de446550658be84ac9b6b15017b05cd792cb6ee5da7ab74b79b215fd47
|
||||
flakes: false
|
||||
nix_commands: []
|
||||
@@ -1,108 +0,0 @@
|
||||
|
||||
---
|
||||
- name: Get nix version
|
||||
shell: |
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
nix --version
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
register: nix_version_output
|
||||
- name: Set nix version name
|
||||
set_fact:
|
||||
nix_version_on_system: "{{ (nix_version_output.stdout_lines[0] | split(' '))[2] }}"
|
||||
when: nix_version_output.rc == 0
|
||||
- name: Download and run installer
|
||||
block:
|
||||
- name: Download installer
|
||||
get_url:
|
||||
url: "{{ installer_path }}"
|
||||
dest: /tmp
|
||||
checksum: "{{ installer_checksum }}"
|
||||
- name: extract installer
|
||||
unarchive:
|
||||
src: /tmp/{{ nix_build }}.tar.xz
|
||||
remote_src: true
|
||||
dest: /tmp/
|
||||
- name: Uninistall the previous nix
|
||||
block:
|
||||
- name: disable nix socket
|
||||
service:
|
||||
name: nix-daemon.socket
|
||||
state: stopped
|
||||
enabled: false
|
||||
become: true
|
||||
ignore_errors: true
|
||||
- name: disable nix service
|
||||
service:
|
||||
name: nix-daemon.service
|
||||
state: stopped
|
||||
enabled: false
|
||||
become: true
|
||||
ignore_errors: true
|
||||
- name: Remove Installed nix files
|
||||
file:
|
||||
state: absent
|
||||
path: /nix
|
||||
become: true
|
||||
- name: Remove Installed nix config files
|
||||
file:
|
||||
state: absent
|
||||
path: /etc/nix
|
||||
become: true
|
||||
- name: stat bash.bashrc.backup-before-nix
|
||||
stat:
|
||||
path: /etc/bash.bashrc.backup-before-nix
|
||||
register: bash_bashrc_backup_stat
|
||||
- name: Restore bash.bashrc
|
||||
shell: mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc
|
||||
become: true
|
||||
when: bash_bashrc_backup_stat.stat.exists
|
||||
- name: stat bashrc.backup-before-nix
|
||||
stat:
|
||||
path: /etc/bashrc.backup-before-nix
|
||||
register: bashrc_backup_stat
|
||||
- name: Restore bashrc
|
||||
shell: mv /etc/bashrc.backup-before-nix /etc/bashrc
|
||||
become: true
|
||||
when: bashrc_backup_stat.stat.exists
|
||||
- name: stat zshrc.backup-before-nix
|
||||
stat:
|
||||
path: /etc/zshrc.backup-before-nix
|
||||
register: zshrc_backup_stat
|
||||
- name: Restore zshrc
|
||||
shell: mv /etc/zshrc.backup-before-nix /etc/zshrc
|
||||
become: true
|
||||
when: zshrc_backup_stat.stat.exists
|
||||
- name: stat nix.sh
|
||||
stat:
|
||||
path: /etc/profile.d/nix.sh.backup-before-nix
|
||||
register: nixsh_backup_stat
|
||||
- name: Restore nix.sh
|
||||
shell: mv /etc/profile.d/nix.sh.backup-before-nix /etc/profile.d/nix.sh
|
||||
become: true
|
||||
when: nixsh_backup_stat.stat.exists
|
||||
when: nix_version_on_system is defined and nix_version_on_system != nix_version
|
||||
- name: Run the installer
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: ./install --daemon </dev/null
|
||||
chdir: /tmp/{{ nix_build }}
|
||||
when: (not nix_version_on_system is defined) or nix_version_on_system != nix_version
|
||||
- name: Enable flakes
|
||||
become: true
|
||||
lineinfile:
|
||||
path: /etc/nix/nix.conf
|
||||
line: "experimental-features = nix-command flakes"
|
||||
when: flakes
|
||||
- name: Add arbritrary nix config
|
||||
blockinfile:
|
||||
path: /etc/nix/nix.conf
|
||||
block: "{{ config }}"
|
||||
become: true
|
||||
when: config is defined
|
||||
- name: run nix commands
|
||||
shell: |
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
{{ item }}
|
||||
changed_when: true
|
||||
loop: "{{ nix_commands }}"
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
nix_build: nix-{{ nix_version }}-x86_64-linux
|
||||
installer_path: https://releases.nixos.org/nix/nix-{{ nix_version }}/{{ nix_build }}.tar.xz
|
||||
@@ -1,2 +1,8 @@
|
||||
---
|
||||
nvim_version: v0.9.1
|
||||
go_verison: go1.20.5
|
||||
s76keyboard_version: 1.3.7
|
||||
fonts:
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraMono.zip, name: 'Fira*Mono*'}
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Go-Mono.zip, name: 'GoMonoNerdFont-*'}
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip, name: 'Fira*Code*'}
|
||||
|
||||
@@ -1,61 +1,12 @@
|
||||
- name: add apt repository key
|
||||
apt_key:
|
||||
url: "{{ item }}"
|
||||
with_items: "{{ apt_keys }}"
|
||||
become: yes
|
||||
- name: "Install apt"
|
||||
include_tasks: "../scripts/install_apt.yml"
|
||||
|
||||
- name: add apt repository
|
||||
apt_repository:
|
||||
repo: "{{ item }}"
|
||||
with_items: "{{ apt_repo }}"
|
||||
become: yes
|
||||
|
||||
- name: Upgrade Packages
|
||||
package:
|
||||
update_cache: yes
|
||||
upgrade: safe
|
||||
become: yes
|
||||
|
||||
- name: Install Packages
|
||||
apt:
|
||||
state: latest
|
||||
update_cache: yes
|
||||
pkg: "{{ required_packages }}"
|
||||
become: yes
|
||||
when: required_packages is defined
|
||||
|
||||
- name: ensure fonts directory
|
||||
become_user: user
|
||||
file:
|
||||
path: "~/.fonts"
|
||||
state: directory
|
||||
|
||||
- name: FiraCode exists
|
||||
become_user: user
|
||||
shell: "ls ~/.fonts/*{{ item.name }}*"
|
||||
register: FiraCode_exists
|
||||
ignore_errors: yes
|
||||
with_items: "{{ fonts }}"
|
||||
|
||||
- name: Download FiraCode
|
||||
when: FiraCode_exists is failed
|
||||
become_user: user
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ item.url }}"
|
||||
dest: "~/.fonts/"
|
||||
remote_src: yes
|
||||
with_items: "{{ fonts }}"
|
||||
- name: "Install flatpak"
|
||||
include_tasks: "../scripts/install_flatpak.yml"
|
||||
|
||||
- name: Enable wayland
|
||||
shell: sed -i 's/WaylandEnable=false/WaylandEnable=true/' /etc/gdm3/custom.conf
|
||||
|
||||
- name: download Nvim
|
||||
ansible.builtin.get_url:
|
||||
url: "https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage"
|
||||
dest: /usr/bin/nvim
|
||||
mode: '0755'
|
||||
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum
|
||||
|
||||
- name: Start and enable services
|
||||
ansible.builtin.systemd:
|
||||
state: started
|
||||
@@ -69,3 +20,4 @@
|
||||
groups: "{{ item }}"
|
||||
append: yes
|
||||
with_items: "{{ groups_to_add }}"
|
||||
|
||||
|
||||
@@ -6,5 +6,17 @@
|
||||
- "vars/{{ ansible_os_family }}.yml"
|
||||
- "vars/defaults.yml"
|
||||
|
||||
- name:
|
||||
- name: "OS dependant"
|
||||
include_tasks: "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
||||
|
||||
- name: "Install fonts"
|
||||
include_tasks: "../scripts/install_fonts.yml"
|
||||
|
||||
- name: "Install nvim"
|
||||
include_tasks: "../scripts/install_nvim.yml"
|
||||
|
||||
- name: "Install Go"
|
||||
include_tasks: "../scripts/install_go.yml"
|
||||
|
||||
- name: Configure Gitlab SSH Key
|
||||
ansible.builtin.command: pwsh -f ./scripts/configure-ssh.ps1 '{{ lookup('ansible.builtin.env', 'GITLAB_TOKEN') }}'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
required_packages:
|
||||
- ripgrep
|
||||
- ansible
|
||||
@@ -15,6 +14,14 @@ required_packages:
|
||||
- qemu-kvm
|
||||
- virt-manager
|
||||
- stow
|
||||
- tmux
|
||||
- terminator
|
||||
- system76-keyboard-configurator
|
||||
- xsel
|
||||
- openvpn
|
||||
- easy-rsa
|
||||
- docker.io
|
||||
- httpie
|
||||
|
||||
apt_keys:
|
||||
- https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
@@ -29,6 +36,7 @@ apt_repo:
|
||||
|
||||
required_flatpak_packages:
|
||||
- io.gitlab.librewolf-community
|
||||
- com.brave.Browser
|
||||
- com.bitwarden.desktop
|
||||
- com.discordapp.Discord
|
||||
- com.makemkv.MakeMKV
|
||||
@@ -37,20 +45,16 @@ required_flatpak_packages:
|
||||
- org.remmina.Remmina
|
||||
- org.signal.Signal
|
||||
- org.videolan.VLC
|
||||
|
||||
- com.spotify.Client
|
||||
services_to_enable:
|
||||
- libvirtd.service
|
||||
|
||||
fonts:
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraMono.zip, name: 'Fira*Mono*'}
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Go-Mono.zip, name: 'GoMonoNerdFont-*'}
|
||||
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip, name: 'Fira*Code*'}
|
||||
|
||||
groups_to_add:
|
||||
- adm
|
||||
- libvirt
|
||||
- kvm
|
||||
- input
|
||||
- disk
|
||||
- disk
|
||||
- docker
|
||||
|
||||
|
||||
|
||||
@@ -1,31 +1,35 @@
|
||||
param ($GITLAB_TOKEN)
|
||||
if (!$GITLAB_TOKEN){
|
||||
Write-Output "Please unlock Bitwarden"
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!(test-path ~/.ssh/id_rsa)){
|
||||
ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N '""'
|
||||
ssh-keygen -a 100 -t ed25519 -f ~/.ssh/id_rsa -q -N '""'
|
||||
}
|
||||
|
||||
#Gitlab set ssh key
|
||||
|
||||
if($(Test-Path "~/.credentials/gitlab" )){
|
||||
TOKEN = Get-Content "~/.credentials/gitlab" | ConvertTo-SecureString-AsPlainText
|
||||
$header = @{
|
||||
"PRIVATE-TOKEN"=$GITLAB_TOKEN
|
||||
}
|
||||
$GitlabAPI = "https://gitlab.com/api/v4"
|
||||
|
||||
$header = @{
|
||||
"PRIVATE-TOKEN"=$TOKEN
|
||||
$publickey = Get-Content ~/.ssh/id_rsa.pub
|
||||
|
||||
$body = @{
|
||||
title = "Ansible Script"
|
||||
key = "$publickey"
|
||||
expires_at ="$((get-date).AddDays(30).ToUniversalTime().ToString("o"))"
|
||||
} | ConvertTo-Json
|
||||
|
||||
Try{
|
||||
Invoke-RestMethod -Headers $header -Uri $GitlabAPI/user/keys -Body $body -Method Post -ContentType application/json -ErrorVariable gitlabkey | Out-Null
|
||||
}Catch{
|
||||
if($gitlabkey -notlike "*has already been taken*"){
|
||||
Write-Error "Failed to upload key"
|
||||
exit -1
|
||||
}
|
||||
$GitlabAPI = "https://gitlab.com/api/v4"
|
||||
|
||||
$publickey = Get-Content ~/.ssh/id_rsa.pub
|
||||
|
||||
$body = @{
|
||||
title = "Ansible Script"
|
||||
key = "$publickey"
|
||||
expires_at ="$((get-date).AddDays(30).ToUniversalTime().ToString("o"))"
|
||||
} | ConvertTo-Json
|
||||
|
||||
Try{
|
||||
Invoke-RestMethod -Headers $header -Uri $GitlabAPI/user/keys -Body $body -Method Post -ContentType application/json -ErrorVariable gitlabkey | Out-Null
|
||||
}Catch{
|
||||
if($gitlabkey -notlike "*has already been taken*"){
|
||||
Write-Error "Failed to upload key"
|
||||
exit -1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
param(
|
||||
$service,
|
||||
$password
|
||||
)
|
||||
|
||||
if($service -eq "gitlab"){
|
||||
$password | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString | Out-File ~/.credentials/gitlab
|
||||
}
|
||||
25
scripts/install_apt.yml
Normal file
25
scripts/install_apt.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
- name: add apt repository key
|
||||
apt_key:
|
||||
url: "{{ item }}"
|
||||
with_items: "{{ apt_keys }}"
|
||||
become: yes
|
||||
|
||||
- name: add apt repository
|
||||
apt_repository:
|
||||
repo: "{{ item }}"
|
||||
with_items: "{{ apt_repo }}"
|
||||
become: yes
|
||||
|
||||
- name: Upgrade Packages
|
||||
package:
|
||||
update_cache: yes
|
||||
upgrade: safe
|
||||
become: yes
|
||||
|
||||
- name: Install Packages
|
||||
apt:
|
||||
state: latest
|
||||
update_cache: yes
|
||||
pkg: "{{ required_packages }}"
|
||||
become: yes
|
||||
when: required_packages is defined
|
||||
17
scripts/install_flatpak.yml
Normal file
17
scripts/install_flatpak.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- name: configure flatpak
|
||||
community.general.flatpak_remote:
|
||||
name: flathub
|
||||
state: present
|
||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: update flatpaks
|
||||
shell:
|
||||
cmd: flatpak update --noninteractive
|
||||
|
||||
- name: install flatpak
|
||||
become_user: user
|
||||
community.general.flatpak:
|
||||
name: "{{ item }}"
|
||||
with_items: "{{ required_flatpak_packages }}"
|
||||
when: required_flatpak_packages is defined
|
||||
ignore_errors: yes
|
||||
21
scripts/install_fonts.yml
Normal file
21
scripts/install_fonts.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: ensure fonts directory
|
||||
become_user: user
|
||||
file:
|
||||
path: "~/.fonts"
|
||||
state: directory
|
||||
|
||||
- name: FiraCode exists
|
||||
become_user: user
|
||||
shell: "ls ~/.fonts/*{{ item.name }}*"
|
||||
register: FiraCode_exists
|
||||
ignore_errors: yes
|
||||
with_items: "{{ fonts }}"
|
||||
|
||||
- name: Download FiraCode
|
||||
when: FiraCode_exists is failed
|
||||
become_user: user
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ item.url }}"
|
||||
dest: "~/.fonts/"
|
||||
remote_src: yes
|
||||
with_items: "{{ fonts }}"
|
||||
40
scripts/install_go.yml
Normal file
40
scripts/install_go.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
- name: Check that Go is installed
|
||||
shell: go version | cut -d' ' -f3
|
||||
ignore_errors: yes
|
||||
register: Go_Installed
|
||||
|
||||
- name: Install Go
|
||||
when: Go_Installed.stdout != go_verison
|
||||
ansible.builtin.unarchive:
|
||||
src: "https://go.dev/dl/{{ go_verison }}.linux-amd64.tar.gz"
|
||||
dest: "/usr/local"
|
||||
remote_src: yes
|
||||
|
||||
- name: Install Go Modules
|
||||
become_user: user
|
||||
shell: "go install {{ item }}"
|
||||
with_items:
|
||||
- "github.com/segmentio/golines@latest"
|
||||
- "mvdan.cc/gofumpt@latest"
|
||||
- "github.com/incu6us/goimports-reviser/v3@latest"
|
||||
- "github.com/fatih/gomodifytags@latest"
|
||||
- "github.com/go-delve/delve/cmd/dlv@latest"
|
||||
- "github.com/sentiens/goptest@latest"
|
||||
- "github.com/josharian/impl@latest"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# go install github.com/segmentio/golines@latest
|
||||
# go install mvdan.cc/gofumpt@latest
|
||||
# go install github.com/incu6us/goimports-reviser/v3@latest
|
||||
# go install github.com/fatih/gomodifytags@latest
|
||||
# go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
# go install github.com/sentiens/goptest@latest
|
||||
# go install github.com/josharian/impl@latest
|
||||
4
scripts/install_lazygit.yml
Normal file
4
scripts/install_lazygit.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||
tar xf lazygit.tar.gz lazygit
|
||||
sudo install lazygit /usr/local/bin
|
||||
6
scripts/install_nvim.yml
Normal file
6
scripts/install_nvim.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: download Nvim
|
||||
ansible.builtin.get_url:
|
||||
url: "https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage"
|
||||
dest: /usr/bin/nvim
|
||||
mode: '0755'
|
||||
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum
|
||||
1
scripts/install_ohmyposh.yml
Normal file
1
scripts/install_ohmyposh.yml
Normal file
@@ -0,0 +1 @@
|
||||
curl -s https://ohmyposh.dev/install.sh | sudo bash -s
|
||||
Reference in New Issue
Block a user