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
|
||||
work in progress...
|
||||
# nixos-config [](https://builtwithnix.org)
|
||||
|
||||
get internet
|
||||
`wpa_passphrase "<SSID>" > /etc/wpa_supplicant.conf`
|
||||
`systemctl restart wpa_supplicant`
|
||||
This repository holds my NixOS configuration. It is fully reproducible, flakes
|
||||
based, and position-independent, meaning there is no moving around of
|
||||
`configuration.nix`.
|
||||
|
||||
install git
|
||||
`nix-env -iA nixos.git`
|
||||
Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage).
|
||||
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix).
|
||||
|
||||
get this repo
|
||||
`git clone https://github.com/Stunkymonkey/nixos.git`
|
||||
`cd nixos`
|
||||
## structure
|
||||
|
||||
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
|
||||
`vim /tmp/password`
|
||||
enter password
|
||||
`head -c <#char> /tmp/password > /tmp/passwd`
|
||||
## usage
|
||||
|
||||
install
|
||||
`bash install-<hostname>.sh`
|
||||
updating:
|
||||
```bash
|
||||
nix flake update
|
||||
```
|
||||
|
||||
wait + enter password
|
||||
`reboot`
|
||||
deployment:
|
||||
```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