https://github.com/shimarulin/arcfg
My own Ansible managed Arch Linux configuration
https://github.com/shimarulin/arcfg
ansible arch-linux arch-linux-setup archlinux archlinux-dotfiles dotfiles
Last synced: 8 months ago
JSON representation
My own Ansible managed Arch Linux configuration
- Host: GitHub
- URL: https://github.com/shimarulin/arcfg
- Owner: shimarulin
- Created: 2025-01-07T00:03:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T23:45:39.000Z (12 months ago)
- Last Synced: 2025-03-05T04:02:13.113Z (11 months ago)
- Topics: ansible, arch-linux, arch-linux-setup, archlinux, archlinux-dotfiles, dotfiles
- Language: Shell
- Homepage:
- Size: 382 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arcfg
> My own Ansible managed Arch Linux configuration
## Requirements
```sh
sudo pacman -S git python-uv
```
## Installation
```sh
git clone git@github.com:shimarulin/arcfg.git ~/.local/share/arcfg
cd ~/.local/share/arcfg
uv sync --group dev
uv run ansible-galaxy collection install -r ./collections/requirements.yml
```
## Usage
### Setup variables
```sh
uv run mkvars
```
### Run playbook
```sh
uv run ansible-playbook arcfg.gnome.main
```
### Output a playbook stdout to the log file
```sh
uv run ansible-playbook arcfg.desktop.tty > .logs/play/arcfg.desktop.tty__$(date +"%Y-%m-%d_%T").log
```
## Development
```sh
uv run pre-commit install --install-hooks
```
### Create new role
```sh
uv run mkrole
```
By default, this command implies installing a package with a name matching the name of the role being created.
### Mount project to virtual instance (QEMU/KVM)
#### Host system
VM virtual fs settings example:
```xml
```
#### Virtual machine
Create on VM mount point:
```sh
mkdir -p ~/.local/share/arcfg
```
Automount virtual fs with `/etc/fstab`:
```
arcfg /home/vagrant/.local/share/arcfg virtiofs defaults 0 0
```
Create additional environvent file:
```sh
echo 'export UV_PROJECT_ENVIRONMENT=${HOME}/.local/share/arcfg/.cache/vmvenv' | sudo tee -a /etc/profile.d/00-arcfg.sh
```
Reboot, jump to `~/.local/share/arcfg` dir and reinstall packages
```sh
uv sync --group dev
```
### Watch DConf changes
```shell
dconf watch / > .logs/dconf.log
```