onedrive: add module (#6907)

This commit is contained in:
Aguirre Matteo 2025-04-26 21:40:10 +00:00 committed by GitHub
parent 4d2d322317
commit 2f5819a962
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1 @@
{ onedrive-example-config = ./example-config.nix; }

View file

@ -0,0 +1,9 @@
check_nomount = "false"
check_nosync = "false"
classify_as_big_delete = "1000"
cleanup_local_files = "false"
disable_notifications = "false"
no_remote_delete = "false"
rate_limit = "0"
resync = "false"
skip_dotfiles = "false"

View file

@ -0,0 +1,22 @@
{
programs.onedrive = {
enable = true;
settings = {
check_nomount = "false";
check_nosync = "false";
classify_as_big_delete = "1000";
cleanup_local_files = "false";
disable_notifications = "false";
no_remote_delete = "false";
rate_limit = "0";
resync = "false";
skip_dotfiles = "false";
};
};
nmt.script = ''
assertFileExists home-files/.config/onedrive/config
assertFileContent home-files/.config/onedrive/config \
${./example-config}
'';
}