Use symlinks for config stuff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Install zsh
|
||||
become: true
|
||||
package:
|
||||
name: zsh
|
||||
state: present
|
||||
|
||||
- name: Install oh-my-zsh
|
||||
become: true
|
||||
become_user: noahk
|
||||
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
- name: Install zsh-syntax-highlighting
|
||||
become: true
|
||||
become_user: noahk
|
||||
@@ -18,7 +15,6 @@
|
||||
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
dest: /home/noahk/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
update: true
|
||||
|
||||
- name: Install zsh-autosuggestions
|
||||
become: true
|
||||
become_user: noahk
|
||||
@@ -26,22 +22,15 @@
|
||||
repo: https://github.com/zsh-users/zsh-autosuggestions.git
|
||||
dest: /home/noahk/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
update: true
|
||||
|
||||
- name: Install starship
|
||||
become: true
|
||||
become_user: noahk
|
||||
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)"
|
||||
|
||||
- name: Configure ZSH
|
||||
become: true
|
||||
become_user: noahk
|
||||
template:
|
||||
src: zshrc.j2
|
||||
dest: /home/noahk/.zshrc
|
||||
owner: noahk
|
||||
group: noahk
|
||||
mode: 0644
|
||||
|
||||
- name: Config zsh
|
||||
file:
|
||||
src: /home/noahk/.config/zsh/.zshrc
|
||||
dst: /home/noahk/.zshrc
|
||||
state: link
|
||||
- name: Install nushell
|
||||
become: true
|
||||
package:
|
||||
|
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
@@ -6,43 +7,28 @@
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This will setup the normal user on the machine.
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Create the group
|
||||
group:
|
||||
name: noahk
|
||||
state: present
|
||||
|
||||
- name: Create the user
|
||||
user:
|
||||
name: noahk
|
||||
group: noahk
|
||||
groups: noahk,{{ sudo_group }}
|
||||
password: "{{ noahk_password }}"
|
||||
password: '{{ noahk_password }}'
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
|
||||
- name: Add user to sudoers
|
||||
copy:
|
||||
src: noahk/noahk_sudoers
|
||||
dest: /etc/sudoers.d/noahk
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0440
|
||||
|
||||
- name: Create .ssh directory
|
||||
file:
|
||||
path: /home/noahk/.ssh
|
||||
state: directory
|
||||
owner: noahk
|
||||
group: noahk
|
||||
mode: 0700
|
||||
with_items:
|
||||
- dir: /home/noahk/.ssh
|
||||
|
||||
- name: Copy ssh public key
|
||||
authorized_key:
|
||||
user: noahk
|
||||
key: "{{ item }}"
|
||||
with_file:
|
||||
- noahk/noahk.pub
|
||||
mode: 440
|
||||
- name: Clone the .config repo
|
||||
git:
|
||||
repo: https://git.noahknegt.com/noah.knegt/.config.git
|
||||
dest: /home/noah/.config
|
||||
clone: true
|
||||
update: true
|
||||
|
Reference in New Issue
Block a user