syncthing: Declarative
I could split this commit in more but I won't. The first commit in this repository said it would be the last legible one, and I haven't followed that, so YOLO.
This commit is contained in:
parent
b7d56a3118
commit
8edb670486
20 changed files with 222 additions and 45 deletions
|
@ -1,11 +1,11 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
passwordFile = "/tmp/dotfiles_${config.networking.hostName}_password";
|
||||
passwordFile = "/tmp/dotfiles_${config.frogeye.name}_password";
|
||||
in
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
"${config.networking.hostName}" = {
|
||||
"${config.frogeye.name}" = {
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
@ -27,7 +27,7 @@ in
|
|||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "${config.networking.hostName}";
|
||||
name = "${config.frogeye.name}";
|
||||
passwordFile = passwordFile;
|
||||
settings = {
|
||||
# Not having SSDs die fast is more important than crypto
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue