nixos-config/system/desktop/encfs.nix

31 lines
874 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, lib, pkgs, ... }:
{
module.backup.services.encfs =
let
mainUser = config.users.users.mainUser;
in {
"fotos" = {
user = mainUser.name;
bootDelay = 0;
keyFile = toString <secrets/encfs/fotos>;
encryptedFolder = "${mainUser.home}/private/.fotos.ct";
decryptedFolder = "${mainUser.home}/fotos";
};
"desktop" = {
user = mainUser.name;
bootDelay = 0;
keyFile = toString <secrets/encfs/desktop>;
encryptedFolder = "${mainUser.home}/.desktop.ct";
decryptedFolder = "${mainUser.home}/desktop";
};
"finance" = {
user = mainUser.name;
bootDelay = 0;
keyFile = toString <secrets/encfs/finance>;
encryptedFolder = "${mainUser.home}/.finance.ct";
decryptedFolder = "${mainUser.home}/finance";
};
};
}