Let's try adding shell.nix

main
earnest ma 2022-07-02 12:02:10 -04:00
parent 49a9890ba1
commit 553b1a11b8
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
3 changed files with 20 additions and 6 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

View File

@ -1,14 +1,16 @@
# ansible # ansible
Configuration through [Ansible](https://ansible.com) for my main laptop. Configuration through [Ansible](https://ansible.com) for my development environment(s).
## Start Clone & execute the main playbook locally: `ansible-playbook run.yml -K`
1. `curl https://git.earne.link/earnestma/ansible/raw/branch/main/ensure.sh | sh` You will need to set SELinux to permissive and install nix first:
2. Clone the repository and enter it
3. Execute the main playbook: `ansible-playbook run.yml -K`
Other playbooks: ```bash
sudo setenforce 0
sh <(curl -L https://nixos.org/nix/install) --daemon
nix-shell
```
- Run usual updates: `ansible-playbook update.yml -K` - Run usual updates: `ansible-playbook update.yml -K`
@ -16,6 +18,8 @@ Other playbooks:
- `git config core.hooksPath .git-hooks` - `git config core.hooksPath .git-hooks`
TODO(earne): Remove this/ update
## After first time run ## After first time run
- Restore all/ specific files (e.g. those with secrets) from a backup, if needed - Restore all/ specific files (e.g. those with secrets) from a backup, if needed

9
shell.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
BuildInputs = [
ansible
ansible-lint
];
}