remove note sync service

This commit is contained in:
TheWanderingCrow 2025-04-22 09:23:19 -04:00
parent 5c7385a1dc
commit 0d0a828296
5 changed files with 0 additions and 39 deletions

View file

@ -26,8 +26,6 @@
module.appdevel.enable = true;
module.hobbies.enable = true;
service.note-sync.enable = true;
programs.noisetorch.enable = true;
virtualisation.vmware.host.enable = true;

View file

@ -55,10 +55,6 @@
kde.enable = lib.mkEnableOption "KDE with Plasma6";
};
service = {
note-sync.enable = lib.mkEnableOption "enable note sync to repo";
};
ricing = {
basic.enable = lib.mkEnableOption "enable basic ricing";
wasteland.enable = lib.mkEnableOption "post-collapse themed rice";
@ -118,10 +114,6 @@
kde.enable = lib.mkDefault false;
};
service = {
note-sync.enable = lib.mkDefault false;
};
ricing = {
basic.enable = lib.mkDefault true;
wasteland.enable = lib.mkDefault false;

View file

@ -1,4 +0,0 @@
{
imports = [
];
}

View file

@ -1,4 +0,0 @@
{
imports = [
];
}

View file

@ -1,21 +0,0 @@
{
config,
lib,
...
}: {
config.systemd.services.note_sync = lib.mkIf config.service.note-sync.enable {
enable = true;
description = "Auto sync notes to remote";
serviceConfig = {
User = "crow";
Type = "oneshot";
};
path = [
"/run/current-system/sw"
];
startAt = [
"*:0/5"
];
script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit diff-index --quiet HEAD || git commit -am 'automatic backup'\ngit push";
};
}