mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
have a new README reflecting flake changes
This commit is contained in:
parent
383152e7e7
commit
89032569b6
2 changed files with 53 additions and 20 deletions
46
README.md
46
README.md
|
@ -1,27 +1,33 @@
|
||||||
# My personal NixOS-configuration
|
# nixos-config [](https://builtwithnix.org)
|
||||||
work in progress...
|
|
||||||
|
|
||||||
get internet
|
This repository holds my NixOS configuration. It is fully reproducible, flakes
|
||||||
`wpa_passphrase "<SSID>" > /etc/wpa_supplicant.conf`
|
based, and position-independent, meaning there is no moving around of
|
||||||
`systemctl restart wpa_supplicant`
|
`configuration.nix`.
|
||||||
|
|
||||||
install git
|
Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage).
|
||||||
`nix-env -iA nixos.git`
|
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix).
|
||||||
|
|
||||||
get this repo
|
## structure
|
||||||
`git clone https://github.com/Stunkymonkey/nixos.git`
|
|
||||||
`cd nixos`
|
|
||||||
|
|
||||||
link to correct host
|
```
|
||||||
`ln -s <host>.nix configuration.nix`
|
.
|
||||||
|
├── nixos # Machine definitions
|
||||||
|
└── legacy # older scripts kept before having an iso-image
|
||||||
|
```
|
||||||
|
|
||||||
set password for luks
|
## usage
|
||||||
`vim /tmp/password`
|
|
||||||
enter password
|
|
||||||
`head -c <#char> /tmp/password > /tmp/passwd`
|
|
||||||
|
|
||||||
install
|
updating:
|
||||||
`bash install-<hostname>.sh`
|
```bash
|
||||||
|
nix flake update
|
||||||
|
```
|
||||||
|
|
||||||
wait + enter password
|
deployment:
|
||||||
`reboot`
|
```bash
|
||||||
|
deploy .#myHost
|
||||||
|
```
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
```bash
|
||||||
|
sops ./nixos/myHost/secrets.yaml
|
||||||
|
```
|
||||||
|
|
27
legacy/README.md
Normal file
27
legacy/README.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# My personal NixOS-configuration
|
||||||
|
work in progress...
|
||||||
|
|
||||||
|
get internet
|
||||||
|
`wpa_passphrase "<SSID>" > /etc/wpa_supplicant.conf`
|
||||||
|
`systemctl restart wpa_supplicant`
|
||||||
|
|
||||||
|
install git
|
||||||
|
`nix-env -iA nixos.git`
|
||||||
|
|
||||||
|
get this repo
|
||||||
|
`git clone https://github.com/Stunkymonkey/nixos.git`
|
||||||
|
`cd nixos`
|
||||||
|
|
||||||
|
link to correct host
|
||||||
|
`ln -s <host>.nix configuration.nix`
|
||||||
|
|
||||||
|
set password for luks
|
||||||
|
`vim /tmp/password`
|
||||||
|
enter password
|
||||||
|
`head -c <#char> /tmp/password > /tmp/passwd`
|
||||||
|
|
||||||
|
install
|
||||||
|
`bash install-<hostname>.sh`
|
||||||
|
|
||||||
|
wait + enter password
|
||||||
|
`reboot`
|
Loading…
Add table
Add a link
Reference in a new issue