genepi: add password for synchthing-gui
This commit is contained in:
parent
5d329ed845
commit
299bf4ea85
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue