declarative directories test2

This commit is contained in:
serenity-F 2024-09-20 22:02:45 +10:00
parent 062e636e55
commit 0859b55190
No known key found for this signature in database
2 changed files with 93 additions and 12 deletions

92
home/users/sync.nix Normal file
View file

@ -0,0 +1,92 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
];
## Declarative sync directory creation
systemd.tmpfiles.settings = {
"library" = {
"/home/serenity/sync/library" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"auth" = {
"/home/serenity/sync/organisation/auth" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"notes" = {
"/home/serenity/sync/organisation/notes" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"planner" = {
"/home/serenity/sync/organisation/planner" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"paperwork" = {
"/home/serenity/sync/organisation/paperwork" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate/misc" = {
"/home/serenity/sync/devices/hecate/misc" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate/pictures" = {
"/home/serenity/sync/devices/hecate/pictures" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate/backups" = {
"/home/serenity/sync/devices/hecate/backups" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
};
}