genepi: add password for synchthing-gui

This commit is contained in:
2025-11-29 14:11:50 +01:00
parent 5d329ed845
commit 299bf4ea85

View File

@@ -23,5 +23,17 @@ in
group = lib.mkForce "users";
dataDir = home;
configDir = lib.mkForce "${home}/.config/syncthing";
guiPasswordFile = config.clan.core.vars.generators.syncthing-gui.files.password.path;
};
clan.core.vars.generators.syncthing-gui = {
files.password = {
secret = true;
owner = user;
};
runtimeInputs = [ pkgs.xkcdpass ];
script = ''
xkcdpass -n 7 > $out/password
'';
};
}