Compare commits

..

3 Commits

Author SHA1 Message Date
1e075ffb13 Formatter run 2024-11-10 16:09:03 +01:00
1429eaf34f make: Add fmt target 2024-11-10 16:08:21 +01:00
4ec1268b2e Update README 2024-11-10 16:07:58 +01:00
9 changed files with 124 additions and 106 deletions

View File

@@ -34,3 +34,8 @@ dotfiles:
.PHONY: test
test:
./test-in-docker.sh
.PHONY: fmt
fmt:
git ls-files -z '*.md' | xargs -0 prettier --print-width 80 --prose-wrap always --write
git ls-files -z '*.toml' | xargs -0 taplo format

View File

@@ -1,25 +1,43 @@
# dotfiles
My configuration files.
My configuration files for my systems. Uses Ansible for local configuration.
# Installation
## Supported OS
Only Arch Linux is supported
## Bootstrapping
Bootstrapping is specific to the exact machine that is installed. See
`_machines/` for machine-specific configuration, and `install_scripts/` for the
machine install scripts.
They are keyed by hostname.
For easier installation, the install scripts are available via shortlinks. To
(re)install a new machine from a Arch live environment:
```
curl --proto '=https' -sSfL https://s.hkoerber.de/i/${hostname}.sh | bash
```
## Manual Installation
Because it manages multiple users on the system, the directory is supposed to be
at `/var/lib/dotfiles`.
To setup the dotfiles:
To set up the dotfiles:
1. `git clone https://github.com/hakoerber/dotfiles.git ~/dotfiles`
2. `cd ~/dotfiles && ./install.sh`
# Partial application
## Partial application
To apply only a subset of the changes, use ansible tags that are available via
the Makefile:
| Command | Description |
| --- | --- |
| `make update` | Updates the system with the latest packages |
| --------------- | -------------------------------------------------- |
| `make packages` | Installs all defined packages (see `packages.yml`) |
| `make dotfiles` | Manages the users' dotfiles |

View File

@@ -21,4 +21,3 @@ blue = "#66d9ef"
magenta = "#ae81ff"
cyan = "#a1efe4"
white = "#f9f8f5"

View File

@@ -5,12 +5,7 @@ idle-timeout = 0
completion-trigger-len = 2
[editor.statusline]
left = [
"mode",
"separator",
"file-name",
"file-modification-indicator",
]
left = ["mode", "separator", "file-name", "file-modification-indicator"]
right = [
"spinner",

View File

@@ -1,15 +1,15 @@
[[language]]
name = "bash"
indent = { unit = " " , tab-width = 4 }
indent = { unit = " ", tab-width = 4 }
[language-server.pylsp.config.pylsp.plugins]
flake8 = {enabled = false}
flake8 = { enabled = false }
[[language]]
name = "python"
indent = { unit = " " , tab-width = 4 }
indent = { unit = " ", tab-width = 4 }
[[language]]
name = "dockerfile"
indent = { unit = " " , tab-width = 4 }
indent = { unit = " ", tab-width = 4 }

View File

@@ -0,0 +1 @@