diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..d154f6d --- /dev/null +++ b/.config/gtk-3.0/settings.ini @@ -0,0 +1,3 @@ +[Settings] +gtk-application-prefer-dark-theme=1 + diff --git a/.config/nvim/.stylua.toml b/.config/nvim/.stylua.toml new file mode 100644 index 0000000..ecb6dca --- /dev/null +++ b/.config/nvim/.stylua.toml @@ -0,0 +1,6 @@ +column_width = 120 +line_endings = "Unix" +indent_type = "Spaces" +indent_width = 2 +quote_style = "AutoPreferDouble" +call_parentheses = "None" diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..db53158 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,49 @@ +vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/" +vim.g.mapleader = " " + +-- bootstrap lazy and all plugins +local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" + +if not vim.loop.fs_stat(lazypath) then + local repo = "https://github.com/folke/lazy.nvim.git" + vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath } +end + +vim.opt.rtp:prepend(lazypath) + +local lazy_config = require "configs.lazy" + +-- load plugins +require("lazy").setup({ + { + "NvChad/NvChad", + lazy = false, + branch = "v2.5", + import = "nvchad.plugins", + config = function() + require "options" + end, + }, + + { import = "plugins" }, +}, lazy_config) + +-- load theme +dofile(vim.g.base46_cache .. "defaults") +dofile(vim.g.base46_cache .. "statusline") + +require "nvchad.autocmds" + +vim.schedule(function() + require "mappings" +end) + +vim.opt.guicursor = "" + +vim.opt.nu = true +vim.opt.relativenumber = true +vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) +vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) +vim.api.nvim_set_keymap('n', 'n', 'nzzzv', {noremap = true}) +vim.api.nvim_set_keymap('n', 'N', 'Nzzzv', {noremap = true}) +vim.api.nvim_set_option("clipboard","unnamedplus") diff --git a/.config/nvim/lua/chadrc.lua b/.config/nvim/lua/chadrc.lua new file mode 100644 index 0000000..6a2f17c --- /dev/null +++ b/.config/nvim/lua/chadrc.lua @@ -0,0 +1,9 @@ +-- This file needs to have same structure as nvconfig.lua +-- https://github.com/NvChad/NvChad/blob/v2.5/lua/nvconfig.lua + +---@type ChadrcConfig +local M = {} + + M.ui = {theme = 'catppuccin'} + +return M diff --git a/.config/nvim/lua/configs/conform.lua b/.config/nvim/lua/configs/conform.lua new file mode 100644 index 0000000..a000447 --- /dev/null +++ b/.config/nvim/lua/configs/conform.lua @@ -0,0 +1,15 @@ +local options = { + formatters_by_ft = { + lua = { "stylua" }, + -- css = { "prettier" }, + -- html = { "prettier" }, + }, + + -- format_on_save = { + -- -- These options will be passed to conform.format() + -- timeout_ms = 500, + -- lsp_fallback = true, + -- }, +} + +require("conform").setup(options) diff --git a/.config/nvim/lua/configs/lazy.lua b/.config/nvim/lua/configs/lazy.lua new file mode 100644 index 0000000..cd170bd --- /dev/null +++ b/.config/nvim/lua/configs/lazy.lua @@ -0,0 +1,47 @@ +return { + defaults = { lazy = true }, + install = { colorscheme = { "nvchad" } }, + + ui = { + icons = { + ft = "", + lazy = "󰂠 ", + loaded = "", + not_loaded = "", + }, + }, + + performance = { + rtp = { + disabled_plugins = { + "2html_plugin", + "tohtml", + "getscript", + "getscriptPlugin", + "gzip", + "logipat", + "netrw", + "netrwPlugin", + "netrwSettings", + "netrwFileHandlers", + "matchit", + "tar", + "tarPlugin", + "rrhelper", + "spellfile_plugin", + "vimball", + "vimballPlugin", + "zip", + "zipPlugin", + "tutor", + "rplugin", + "syntax", + "synmenu", + "optwin", + "compiler", + "bugreport", + "ftplugin", + }, + }, + }, +} diff --git a/.config/nvim/lua/configs/lspconfig.lua b/.config/nvim/lua/configs/lspconfig.lua new file mode 100644 index 0000000..a73657a --- /dev/null +++ b/.config/nvim/lua/configs/lspconfig.lua @@ -0,0 +1,23 @@ +-- EXAMPLE +local on_attach = require("nvchad.configs.lspconfig").on_attach +local on_init = require("nvchad.configs.lspconfig").on_init +local capabilities = require("nvchad.configs.lspconfig").capabilities + +local lspconfig = require "lspconfig" +local servers = { "html", "cssls" } + +-- lsps with default config +for _, lsp in ipairs(servers) do + lspconfig[lsp].setup { + on_attach = on_attach, + on_init = on_init, + capabilities = capabilities, + } +end + +-- typescript +lspconfig.tsserver.setup { + on_attach = on_attach, + on_init = on_init, + capabilities = capabilities, +} diff --git a/.config/nvim/lua/custom/mappings.lua b/.config/nvim/lua/configs/mappings.lua similarity index 100% rename from .config/nvim/lua/custom/mappings.lua rename to .config/nvim/lua/configs/mappings.lua diff --git a/.config/nvim/lua/custom/configs/treesitter.lua b/.config/nvim/lua/configs/treesitter.lua similarity index 100% rename from .config/nvim/lua/custom/configs/treesitter.lua rename to .config/nvim/lua/configs/treesitter.lua diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua new file mode 100644 index 0000000..576ea5a --- /dev/null +++ b/.config/nvim/lua/mappings.lua @@ -0,0 +1,11 @@ +require "nvchad.mappings" + +local map = vim.keymap.set + +map("n", ";", ":", { desc = "CMD enter command mode" }) +map("i", "jk", "") +map("", "", " TmuxNavigateLeft", { desc = "window left" }) +map("", "", " TmuxNavigateRight", { desc = "window right" }) +map("", "", " TmuxNavigateDown", { desc = "window down" }) +map("", "", " TmuxNavigateUp", { desc = "window up" }) + diff --git a/.config/nvim/lua/custom/chadrc.lua b/.config/nvim/lua/old/chadrc.lua similarity index 100% rename from .config/nvim/lua/custom/chadrc.lua rename to .config/nvim/lua/old/chadrc.lua diff --git a/.config/nvim/lua/custom/configs/formatter.lua b/.config/nvim/lua/old/configs/formatter.lua similarity index 100% rename from .config/nvim/lua/custom/configs/formatter.lua rename to .config/nvim/lua/old/configs/formatter.lua diff --git a/.config/nvim/lua/custom/configs/lspconfig.lua b/.config/nvim/lua/old/configs/lspconfig.lua similarity index 100% rename from .config/nvim/lua/custom/configs/lspconfig.lua rename to .config/nvim/lua/old/configs/lspconfig.lua diff --git a/.config/nvim/lua/custom/configs/null-ls.lua b/.config/nvim/lua/old/configs/null-ls.lua similarity index 100% rename from .config/nvim/lua/custom/configs/null-ls.lua rename to .config/nvim/lua/old/configs/null-ls.lua diff --git a/.config/nvim/lua/custom/configs/rust-tools.lua b/.config/nvim/lua/old/configs/rust-tools.lua similarity index 100% rename from .config/nvim/lua/custom/configs/rust-tools.lua rename to .config/nvim/lua/old/configs/rust-tools.lua diff --git a/.config/nvim/lua/old/configs/treesitter.lua b/.config/nvim/lua/old/configs/treesitter.lua new file mode 100644 index 0000000..634da2c --- /dev/null +++ b/.config/nvim/lua/old/configs/treesitter.lua @@ -0,0 +1,11 @@ +local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs() +--parser_config.powershell_es = { +-- install_info = { +-- url = "/home/user/.local/share/tree-sitter-PowerShell", +-- files = { "src/parser.c" }, +-- generate_requires_npm = false, +-- requires_generate_from_grammar = false, +-- }, +-- filetype = "ps1", +--} +return parser_config diff --git a/.config/nvim/lua/custom/init.lua b/.config/nvim/lua/old/init.lua similarity index 100% rename from .config/nvim/lua/custom/init.lua rename to .config/nvim/lua/old/init.lua diff --git a/.config/nvim/lua/old/mappings.lua b/.config/nvim/lua/old/mappings.lua new file mode 100644 index 0000000..986d833 --- /dev/null +++ b/.config/nvim/lua/old/mappings.lua @@ -0,0 +1,96 @@ +local M = {} + +M.general = { + n = { + [""] = {" TmuxNavigateLeft", "window left"}, + [""] = {" TmuxNavigateRight", "window right"}, + [""] = {" TmuxNavigateDown", "window down"}, + [""] = {" TmuxNavigateUp", "window up"}, + } +} + +M.dap = { + plugin = true, + n = { + ["db"] = { + " DapToggleBreakpoint ", + "Add breakpoint at line" + }, + [""] = { + " DapContinue ", + "Start Debugging" + }, + [""] = { + " DapTerminate ", + "Stop Debugging" + }, + [""] = { + " DapStepOver ", + "Step Over" + }, + [""] = { + " DapStepInto ", + "Step Into" + }, + [""] = { + " DapStepOut ", + "Stop Out" + }, + ["dus"] = { + function () + local widgets = require('dap.ui.widgets'); + local sidebar = widgets.sidebar(widgets.scopes); + sidebar.open(); + end, + "Open debugging sidebar" + } + } +} + +M.dap_go = { + plugin = true, + n = { + ["dgt"] = { + function() + require('dap-go').debug_test() + end, + "Debug go test" + }, + ["dgl"] = { + function() + require('dap-go').debug_last() + end, + "Debug last go test" + } + } +} + +M.gopher = { + plugin = true, + n = { + ["gsj"] = { + " GoTagAdd json ", + "Add json struct tags" + }, + ["gse"] = { + " GoTagAdd env ", + "Add env struct tags" + }, + ["gsy"] = { + " GoTagAdd yaml ", + "Add yaml struct tags" + } + } +} + +M.crates = { + n = { + ["rcu"] = { + function () + require('crates').upgrade_all_crates() + end, + "update crates" + } + } +} +return M diff --git a/.config/nvim/lua/custom/plugins.lua b/.config/nvim/lua/old/plugins.lua similarity index 100% rename from .config/nvim/lua/custom/plugins.lua rename to .config/nvim/lua/old/plugins.lua diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua new file mode 100644 index 0000000..738f20b --- /dev/null +++ b/.config/nvim/lua/options.lua @@ -0,0 +1,6 @@ +require "nvchad.options" + +-- add yours here! + +-- local o = vim.o +-- o.cursorlineopt ='both' -- to enable cursorline! diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..bb18b39 --- /dev/null +++ b/.config/nvim/lua/plugins/init.lua @@ -0,0 +1,55 @@ +return { + { + "stevearc/conform.nvim", + -- event = 'BufWritePre', -- uncomment for format on save + config = function() + require "configs.conform" + end, + }, + { + "christoomey/vim-tmux-navigator", + lazy = false, + }, + { + "williamboman/mason.nvim", + opts = { + ensure_installed = { + "gopls", + "rust-analyzer", + "pyright", + "mypy", + "ruff", + "black", + "debugpy", + "powershell-editor-services", + "bash-language-server", + "eslint-lsp", + "js-debug-adapter", + "prettier", + "typescript-language-server" + }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { + "lua", + "javascript", + "typescript", + "tsx", + "go", + "terraform", + "c_sharp", + "bash", + }, + }, + }, + { + "neovim/nvim-lspconfig", + config = function() + require("nvchad.configs.lspconfig").defaults() + require "configs.lspconfig" + end, + }, +} diff --git a/.config/sway/config b/.config/sway/config index c45dc10..0e99f53 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,9 +1,3 @@ -# Default config for sway -# -# Copy this to ~/.config/sway/config and edit it to your liking. -# -# Read `man 5 sway` for a complete reference. - ### Variables # # Logo key. Use Mod1 for Alt. @@ -16,35 +10,31 @@ set $right l # Your preferred terminal emulator set $term terminator # Your preferred application launcher -# Note: pass the final command to swaymsg so that the resulting window can be opened -# on the original workspace that the command was run on. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- +set $menu wofi include /etc/sway/config-vars.d/* ### Output configuration # -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# Default wallpaper +output * bg ~/.config/configfiles/wallpaper.png fill # -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 +output eDP-1 disable +output DP-6 resolution 2560x1440 position 9440,1440 +output DP-7 resolution 3440x1440 position 6000,1440 +output DP-5 resolution 3440x1440 position 6000,0 # +workspace 1 output DP-7 +workspace 3 output DP-6 +workspace 2 output DP-5 # You can get the names of your outputs by running: swaymsg -t get_outputs ### Idle configuration # -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when -# resumed. It will also lock your screen before your computer goes to sleep. + exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' ### Input configuration # @@ -71,7 +61,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill bindsym $mod+Shift+q kill # Start your launcher - bindsym $mod+d exec $menu + bindsym $mod+space exec $menu # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. @@ -157,7 +147,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill bindsym $mod+Shift+space floating toggle # Swap focus between the tiling area and the floating area - bindsym $mod+space focus mode_toggle + #bindsym $mod+space focus mode_toggle # Move focus to the parent container bindsym $mod+a focus parent @@ -216,4 +206,5 @@ bindsym XF86AudioMute exec "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -R bindsym XF86MonBrightnessDown exec light -U 10 bindsym XF86MonBrightnessUp exec light -A 10 +default_border none include /etc/sway/config.d/* diff --git a/.config/tmux/plugins/catppuccin-tmux b/.config/tmux/plugins/catppuccin-tmux deleted file mode 160000 index b4e0715..0000000 --- a/.config/tmux/plugins/catppuccin-tmux +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b4e0715356f820fc72ea8e8baf34f0f60e891718 diff --git a/.config/tmux/plugins/vim-tmux-navigator b/.config/tmux/plugins/vim-tmux-navigator index 38b1d04..5b3c701 160000 --- a/.config/tmux/plugins/vim-tmux-navigator +++ b/.config/tmux/plugins/vim-tmux-navigator @@ -1 +1 @@ -Subproject commit 38b1d0402c4600543281dc85b3f51884205674b6 +Subproject commit 5b3c701686fb4e6629c100ed32e827edf8dad01e diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 560e6a8..f0c11ff 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -33,14 +33,13 @@ bind -n S-Right next-window bind -n M-H previous-window bind -n M-L next-window -set -g @catppuccin_flavour 'mocha' - set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' -set -g @plugin 'dreamsofcode-io/catppuccin-tmux' +set -g @plugin 'catppuccin/tmux' set -g @plugin 'tmux-plugins/tmux-yank' +set -g @catppuccin_flavour 'mocha' # set vi-mode set-window-option -g mode-keys vi # keybindings diff --git a/.config/waybar/config b/.config/waybar/config index 7ecf6ee..215d60d 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,33 +1,17 @@ { "layer": "bottom", - "output": ["DP-9","DP-8","DP-10"], "position": "top", "height": 24, - "spacing": 10, + "spacing": 15, "modules-left": ["sway/workspaces","sway/mode"], - "modules-center": ["sway/window"], - "modules-right": ["idle_inhibitor","cpu","memory","battery","pulseaudio","clock","tray"], + "modules-center": ["clock"], + "modules-right": ["battery","pulseaudio","tray"], "sway/mode": { "format": "{}" }, "sway/window": { "format": "{title}" }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "\uf06e", - "deactivated": "\uf070" - } - }, - "cpu": { - "interval": 10, - "format": "CPU: {usage}%" - }, - "memory": { - "interval": 30, - "format": "RAM: {used:0.1f}GiB/{total:0.1f}GiB ({percentage}%) SWAP: {swapUsed:0.1f}GiB/{swapTotal:0.1f}GiB ({swapPercentage}%)" - }, "battery": { "bat": "BAT0", "states": { @@ -35,12 +19,12 @@ "warning": 30, "critical": 5 }, - "format": "BAT0: {capacity}%", - "format-charging": "BAT0: {capacity}% (charging)", - "format-plugged": "BAT0: {capacity}% (plugged)", + "format": "Battery: {capacity}%", + "format-charging": "Battery: {capacity}% (charging)", + "format-plugged": "Battery: {capacity}% (plugged)", }, "clock": { - "format": "{:%Y/%m/%d %H:%M}", + "format": "{:%H:%M %m/%d/%Y}", "tooltip-format": "{calendar}", "calendar": { "format": { @@ -50,7 +34,7 @@ } }, "pulseaudio": { - "format": "{icon} {volume}%", + "format": "{icon} {volume}%", "format-icons": { "default": ["\uf026", "\uf027", "\uf028"] }, diff --git a/.config/waybar/mocha.css b/.config/waybar/mocha.css new file mode 100644 index 0000000..0eb6a82 --- /dev/null +++ b/.config/waybar/mocha.css @@ -0,0 +1,26 @@ +@define-color rosewater #f5e0dc; +@define-color flamingo #f2cdcd; +@define-color pink #f5c2e7; +@define-color mauve #cba6f7; +@define-color red #f38ba8; +@define-color maroon #eba0ac; +@define-color peach #fab387; +@define-color yellow #f9e2af; +@define-color green #a6e3a1; +@define-color teal #94e2d5; +@define-color sky #89dceb; +@define-color sapphire #74c7ec; +@define-color blue #89b4fa; +@define-color lavender #b4befe; +@define-color text #cdd6f4; +@define-color subtext1 #bac2de; +@define-color subtext0 #a6adc8; +@define-color overlay2 #9399b2; +@define-color overlay1 #7f849c; +@define-color overlay0 #6c7086; +@define-color surface2 #585b70; +@define-color surface1 #45475a; +@define-color surface0 #313244; +@define-color base #1e1e2e; +@define-color mantle #181825; +@define-color crust #11111b; diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 0eb6a82..72d4fd8 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,26 +1,12 @@ -@define-color rosewater #f5e0dc; -@define-color flamingo #f2cdcd; -@define-color pink #f5c2e7; -@define-color mauve #cba6f7; -@define-color red #f38ba8; -@define-color maroon #eba0ac; -@define-color peach #fab387; -@define-color yellow #f9e2af; -@define-color green #a6e3a1; -@define-color teal #94e2d5; -@define-color sky #89dceb; -@define-color sapphire #74c7ec; -@define-color blue #89b4fa; -@define-color lavender #b4befe; -@define-color text #cdd6f4; -@define-color subtext1 #bac2de; -@define-color subtext0 #a6adc8; -@define-color overlay2 #9399b2; -@define-color overlay1 #7f849c; -@define-color overlay0 #6c7086; -@define-color surface2 #585b70; -@define-color surface1 #45475a; -@define-color surface0 #313244; -@define-color base #1e1e2e; -@define-color mantle #181825; -@define-color crust #11111b; +@import "mocha.css"; + +* { + /* reference the color by using @color-name */ + color: @text; +} + +window#waybar { + /* you can also GTK3 CSS functions! */ + background-color: shade(@base, 0.9); + border: 2px solid alpha(@crust, 0.3); +} diff --git a/.config/wofi/config b/.config/wofi/config new file mode 100644 index 0000000..0e6b0be --- /dev/null +++ b/.config/wofi/config @@ -0,0 +1,2 @@ +mode=drun +allow_images=true diff --git a/.config/wofi/style.css b/.config/wofi/style.css new file mode 100644 index 0000000..ba14cad --- /dev/null +++ b/.config/wofi/style.css @@ -0,0 +1,3 @@ +window { + font-family: GoMono Nerd Font Propo; +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e360fb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.config/tmux/plugins diff --git a/ansible/roles/customize/tasks/defaults.yml b/ansible/roles/customize/tasks/defaults.yml index 9490a22..adf5ac4 100644 --- a/ansible/roles/customize/tasks/defaults.yml +++ b/ansible/roles/customize/tasks/defaults.yml @@ -4,9 +4,9 @@ - name: generate ssh keys include_tasks: "./scripts/configure_ssh.yml" -- name: Configure Gitlab SSH - become_user: user - ansible.builtin.command: pwsh -f ./scripts/configure_gitlab.ps1 "{{ GITLAB_TOKEN }}" + #- name: Configure Gitlab SSH + # become_user: user + # ansible.builtin.command: pwsh -f ./scripts/configure_gitlab.ps1 "{{ GITLAB_TOKEN }}" - user: name: "user" diff --git a/ansible/roles/customize/vars/Archlinux.yml b/ansible/roles/customize/vars/Archlinux.yml new file mode 100644 index 0000000..94207cb --- /dev/null +++ b/ansible/roles/customize/vars/Archlinux.yml @@ -0,0 +1,3 @@ +fonts: + - {name: 'GoMonoNerd', url: "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Go-Mono.zip"} + - {name: 'FiraCodeNerd', url: "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip"} diff --git a/ansible/roles/packages/tasks/defaults.yml b/ansible/roles/packages/tasks/defaults.yml index 420adc2..94fe570 100644 --- a/ansible/roles/packages/tasks/defaults.yml +++ b/ansible/roles/packages/tasks/defaults.yml @@ -4,5 +4,8 @@ - name: install flatpak include_tasks: "./scripts/install_flatpak.yml" -- name: install brew - include_tasks: "./scripts/install_brew.yml" + #- name: install brew + # include_tasks: "./scripts/install_brew.yml" + +- name: install pacman + include_tasks: "./scripts/install_pacman.yml" diff --git a/ansible/roles/packages/vars/Archlinux.yml b/ansible/roles/packages/vars/Archlinux.yml new file mode 100644 index 0000000..80f2bb6 --- /dev/null +++ b/ansible/roles/packages/vars/Archlinux.yml @@ -0,0 +1,23 @@ +required_packages_pacman: + - sway + - waybar + - stow + - lazygit + - terminator + - tmux + - fzf + - zoxide + - bitwarden-cli + - glab + - go + - neovim + - ffmpeg + - ttyd + - waybar + - wl-clipboard + - pavucontrol + - wofi + - swaybg + - swayidle + - swaylock + - swayimg diff --git a/ansible/scripts/configure_ssh.yml b/ansible/scripts/configure_ssh.yml index 05c636c..bc9472f 100644 --- a/ansible/scripts/configure_ssh.yml +++ b/ansible/scripts/configure_ssh.yml @@ -1,3 +1,12 @@ +- name: Create ssh folder + become_user: user + ansible.builtin.file: + path: ~/.ssh + owner: "user" + group: "user" + mode: '0700' + state: directory + - name: Generate an OpenSSH keypair become_user: user community.crypto.openssh_keypair: diff --git a/ansible/scripts/install_pacman.yml b/ansible/scripts/install_pacman.yml new file mode 100644 index 0000000..a7894f4 --- /dev/null +++ b/ansible/scripts/install_pacman.yml @@ -0,0 +1,14 @@ +- name: Upgrade Packages + community.general.pacman: + state: latest + update_cache: yes + become: yes + when: required_packages_pacman is defined + +- name: Install Packages + community.general.pacman: + state: present + update_cache: yes + name: "{{ required_packages_pacman }}" + become: yes + when: required_packages_pacman is defined