working version
This commit is contained in:
3
example/dotfiles-repo/_shared/bin/.local/bin/flow-hello
Normal file
3
example/dotfiles-repo/_shared/bin/.local/bin/flow-hello
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "Hello from flow example dotfiles"
|
||||
15
example/dotfiles-repo/_shared/flow/.config/flow/config.yaml
Normal file
15
example/dotfiles-repo/_shared/flow/.config/flow/config.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
repository:
|
||||
dotfiles-url: /ABSOLUTE/PATH/TO/flow-cli/example/dotfiles-repo
|
||||
dotfiles-branch: main
|
||||
|
||||
paths:
|
||||
projects-dir: ~/projects
|
||||
|
||||
defaults:
|
||||
container-registry: registry.example.com
|
||||
container-tag: latest
|
||||
tmux-session: default
|
||||
|
||||
targets:
|
||||
personal: orb personal.orb
|
||||
work@ec2: work.internal ~/.ssh/id_work
|
||||
@@ -0,0 +1,37 @@
|
||||
packages:
|
||||
- name: fd
|
||||
type: pkg
|
||||
sources:
|
||||
apt: fd-find
|
||||
dnf: fd-find
|
||||
brew: fd
|
||||
|
||||
- name: ripgrep
|
||||
type: pkg
|
||||
sources:
|
||||
apt: ripgrep
|
||||
dnf: ripgrep
|
||||
brew: ripgrep
|
||||
|
||||
- name: wezterm
|
||||
type: cask
|
||||
sources:
|
||||
brew: wezterm
|
||||
|
||||
- name: neovim
|
||||
type: binary
|
||||
source: github:neovim/neovim
|
||||
version: "0.10.4"
|
||||
asset-pattern: "nvim-{{os}}-{{arch}}.tar.gz"
|
||||
platform-map:
|
||||
linux-x64: { os: linux, arch: x64 }
|
||||
linux-arm64: { os: linux, arch: arm64 }
|
||||
darwin-arm64: { os: macos, arch: arm64 }
|
||||
extract-dir: "nvim-{{os}}64"
|
||||
install:
|
||||
bin: [bin/nvim]
|
||||
share: [share/nvim]
|
||||
man: [share/man/man1/nvim.1]
|
||||
|
||||
- name: docker
|
||||
type: pkg
|
||||
@@ -0,0 +1,39 @@
|
||||
profiles:
|
||||
linux-auto:
|
||||
os: linux
|
||||
requires: [TARGET_HOSTNAME, USER_EMAIL]
|
||||
hostname: "{{ env.TARGET_HOSTNAME }}"
|
||||
shell: zsh
|
||||
packages:
|
||||
- git
|
||||
- tmux
|
||||
- zsh
|
||||
- fd
|
||||
- ripgrep
|
||||
- binary/neovim
|
||||
- name: docker
|
||||
allow_sudo: true
|
||||
post-install: |
|
||||
sudo groupadd docker || true
|
||||
sudo usermod -aG docker $USER
|
||||
ssh-keygen:
|
||||
- type: ed25519
|
||||
filename: id_ed25519
|
||||
comment: "{{ env.USER_EMAIL }}"
|
||||
configs:
|
||||
skip: [tmux]
|
||||
runcmd:
|
||||
- mkdir -p ~/projects
|
||||
- git config --global user.email "{{ env.USER_EMAIL }}"
|
||||
post-link: |
|
||||
echo "All configs linked."
|
||||
echo "Restart your shell to apply changes."
|
||||
|
||||
macos-dev:
|
||||
os: macos
|
||||
shell: zsh
|
||||
packages:
|
||||
- git
|
||||
- tmux
|
||||
- cask/wezterm
|
||||
- binary/neovim
|
||||
9
example/dotfiles-repo/_shared/git/.gitconfig
Normal file
9
example/dotfiles-repo/_shared/git/.gitconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
[user]
|
||||
name = Example User
|
||||
email = example@example.com
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
6
example/dotfiles-repo/_shared/nvim/.config/nvim/init.lua
Normal file
6
example/dotfiles-repo/_shared/nvim/.config/nvim/init.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.shiftwidth = 2
|
||||
|
||||
vim.g.mapleader = " "
|
||||
3
example/dotfiles-repo/_shared/tmux/.tmux.conf
Normal file
3
example/dotfiles-repo/_shared/tmux/.tmux.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
set -g mouse on
|
||||
set -g history-limit 100000
|
||||
setw -g mode-keys vi
|
||||
4
example/dotfiles-repo/_shared/zsh/.zshrc
Normal file
4
example/dotfiles-repo/_shared/zsh/.zshrc
Normal file
@@ -0,0 +1,4 @@
|
||||
export EDITOR=vim
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
alias ll='ls -lah'
|
||||
Reference in New Issue
Block a user