personal-agent: add calendar #944
No files matched your search
Generated
+4
-4
@@ -667,11 +667,11 @@
|
||||
"treefmt-nix": "treefmt-nix_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772304231,
|
||||
"narHash": "sha256-kCHZByzPMLosT5rP5Oxty0YZDJItRBfALq9YcnFpDQM=",
|
||||
"lastModified": 1772310058,
|
||||
"narHash": "sha256-zo3dzoQ60ecukaz3CW+QWxUsAyiEk/FtlqcjAgO52Dk=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "04adead393726f3e0915eb7d450800cb033868bd",
|
||||
"revCount": 20,
|
||||
"rev": "6e9e9202b1880b0e97daeb1266f52170545e9c0f",
|
||||
"revCount": 21,
|
||||
"type": "git",
|
||||
"url": "https://gitea.hillion.co.uk/JakeHillion/personal-agent.git"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 imH11Q M45V2l2UTighdVRCYXmverPvyT1RtX7Wce+mJUsAR2w
|
||||
Ll/Lx3xIuGdAjcmAvSF+ag1ZW8fBh1JMhdA8SzG0JYo
|
||||
--- ZvwSCC41WWxaKnqWxe4hJWCocptfocuPiDoCc5+nvms
|
||||
y}G{»Ô¸’8}wÕÆš5ž®,õ+]Q‚¶ó1†~±-Îë¢J˜°¾^Gõ”ÍXžÝŸ~¨K§«¹Õg@
|
||||
@@ -14,6 +14,7 @@ in
|
||||
age.secrets = lib.genAttrs
|
||||
(map (s: "personal-agent/${s}") [
|
||||
"17track_token"
|
||||
"calendar_password"
|
||||
"fireworks_token"
|
||||
"matrix_password"
|
||||
"todoist_token"
|
||||
@@ -51,6 +52,22 @@ in
|
||||
}];
|
||||
};
|
||||
|
||||
calendar = {
|
||||
private = {
|
||||
server_url = "https://radicale.hillion.co.uk";
|
||||
username = "personal-agent";
|
||||
password_file = config.age.secrets."personal-agent/calendar_password".path;
|
||||
read_only = true;
|
||||
calendar_path = "/jake/69F72067-3C92-40C4-99FB-911D27FCD8E9";
|
||||
};
|
||||
travel = {
|
||||
server_url = "https://radicale.hillion.co.uk";
|
||||
username = "personal-agent";
|
||||
password_file = config.age.secrets."personal-agent/calendar_password".path;
|
||||
read_only = true;
|
||||
calendar_path = "/jake/94E7F50D-CDFC-41B6-BAC7-E94EBA42AF5D";
|
||||
};
|
||||
};
|
||||
seventeen_track = {
|
||||
token_file = config.age.secrets."personal-agent/17track_token".path;
|
||||
write = true;
|
||||
|
||||
@@ -85,6 +85,12 @@ in
|
||||
rights = {
|
||||
type = "from_file";
|
||||
file = builtins.toString (pkgs.writeText "radicale-rights" ''
|
||||
# Allow personal-agent to read specific jake calendars
|
||||
[personal-agent-jake-calendars]
|
||||
user: personal-agent
|
||||
collection: jake/(69F72067-3C92-40C4-99FB-911D27FCD8E9|94E7F50D-CDFC-41B6-BAC7-E94EBA42AF5D)
|
||||
permissions: r
|
||||
|
||||
# Allow reading and writing principal collection (same as username)
|
||||
[principal]
|
||||
user: .+
|
||||
|
||||
@@ -203,4 +203,5 @@ in
|
||||
"modules/services/personal-agent/fireworks_token.age".publicKeys = jake_users ++ [ neb.cx.fanboy ];
|
||||
"modules/services/personal-agent/matrix_password.age".publicKeys = jake_users ++ [ neb.cx.fanboy ];
|
||||
"modules/services/personal-agent/todoist_token.age".publicKeys = [ neb.cx.fanboy ];
|
||||
"modules/services/personal-agent/calendar_password.age".publicKeys = [ neb.cx.fanboy ];
|
||||
}
|
||||
Binary file not shown.
Reference in new issue
Block a user