org-roam notes sync service and new workflows

This commit is contained in:
Andrea Ciceri 2022-12-28 18:36:55 +01:00
parent 021ee17f1b
commit ff6d91c282
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
9 changed files with 52 additions and 24 deletions

View file

@ -14,12 +14,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -14,10 +14,10 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- run: | - run: |
DEBIAN_FRONTEND=noninteractive DEBIAN_FRONTEND=noninteractive
@ -25,7 +25,7 @@ jobs:
mkdir -p ~/.config/nix mkdir -p ~/.config/nix
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf" sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -14,12 +14,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -14,12 +14,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -13,12 +13,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -11,18 +11,18 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v18
with: with:
extra_nix_config: | extra_nix_config: |
max-jobs = 10 accept-flake-config = true
- uses: cachix/cachix-action@v10 - uses: cachix/cachix-action@v12
with: with:
name: aciceri-fleet name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v14 uses: DeterminateSystems/update-flake-lock@v15
with: with:
pr-title: "Automatic `flake.lock` update" pr-title: "Automatic `flake.lock` update"
pr-labels: | pr-labels: |

View file

@ -124,4 +124,31 @@ in {
en_US-large en_US-large
it_IT it_IT
]); ]);
# TODO: probably not the best place, this is unrelated to Emacs
systemd.user.services.second-brain-sync = {
Unit = {Description = "mbsync mailbox synchronization";};
Service = {
Type = "oneshot";
ExecStart = let
sync = pkgs.writeShellScript "second-brain-sync-script" ''
echo ciao
'';
in "${sync}";
};
};
systemd.user.timers.second-brain-sync = {
Unit = {inherit (config.systemd.user.services.second-brain-sync.Unit) Description;};
Timer = {
OnCalendar = "daily";
Unit = "mbsync.service";
Persistent = true;
OnStartupSec = "60m";
};
Install = {WantedBy = ["timers.target"];};
};
} }

View file

@ -18,7 +18,7 @@
Timer = { Timer = {
Unit = "nix-index-update.service"; Unit = "nix-index-update.service";
OnCalendar = "OnCalendar=monday *-*-* 10:00:00"; OnCalendar = "monday *-*-* 10:00:00";
Persistent = true; Persistent = true;
}; };

View file

@ -72,10 +72,11 @@
system = supportedSystems.aarch64-linux; system = supportedSystems.aarch64-linux;
modules = ["${nixosHardware}/pine64/pinebook-pro"]; modules = ["${nixosHardware}/pine64/pinebook-pro"];
}; };
beebox = mkConfiguration { # Retired but it could be still usefull, so I'm not deleting it
name = "beebox"; # beebox = mkConfiguration {
system = supportedSystems.x86_64-linux; # name = "beebox";
}; # system = supportedSystems.x86_64-linux;
# };
rock5b = mkConfiguration { rock5b = mkConfiguration {
name = "rock5b"; name = "rock5b";
system = supportedSystems.aarch64-linux; system = supportedSystems.aarch64-linux;