Compare commits

..

No commits in common. "6f5047da3dd702cedf5f8c296368d9dbba8a014c" and "132dbd67012532c9f920271894323328218001fc" have entirely different histories.

2 changed files with 22 additions and 44 deletions

View file

@ -75,11 +75,8 @@
# location.provider = "geoclue2"; # location.provider = "geoclue2";
location.provider = "manual"; location.provider = "manual";
# using the location of the cafe ascii should be good enough # using the location of the cafe ascii should be good enough
# location.latitude = 51.0250869; location.latitude = 51.0250869;
# location.longitude = 13.7210005; location.longitude = 13.7210005;
# RIT
location.latitude = 43.084902;
location.longitude = -77.678352;
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -379,40 +376,21 @@
]; ];
# periodic automated mail fetching # periodic automated mail fetching
systemd.user.services.mbsync = { systemd.user.services.mailfetch = {
description = "Automated mail fetch and tagging"; enable = true;
description = "Automatically fetches new mails.";
wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Restart = "always";
RestartSec = "60";
}; };
path = with pkgs; [ bash isync notmuch ]; path = with pkgs; [ bash notmuch isync ];
script = "mbsync -a"; script = ''
postStop = "/home/felix/.config/neomutt/notmuch-hook.sh"; mbsync -a && /home/felix/.config/neomutt/notmuch-hook.sh
'';
}; };
systemd.user.timers.mbsync = {
description = "Automated mail fetch and processing";
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "10m";
OnUnitInactiveSec = "10m";
};
};
# systemd.user.services.mailfetch = {
# enable = true;
# description = "Automatically fetches new mails.";
# wantedBy = [ "graphical-session.target" ];
# after = [ "graphical-session.target" ];
# serviceConfig = {
# Restart = "always";
# RestartSec = "60";
# };
# path = with pkgs; [ bash notmuch isync ];
# script = ''
# mbsync -a && /home/felix/.config/neomutt/notmuch-hook.sh
# '';
# };
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View file

@ -21,11 +21,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1730797322, "lastModified": 1729624485,
"narHash": "sha256-cH9emjYIbDYTde/CKOmU97rh7sKuyfedzPcTz4OTJkE=", "narHash": "sha256-iEffyT68tEU5kHQuyP05QRH+JhWNNLAwHfgZAzXFS7o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "1b0b927860d7eb367ee6a3123ddeb7a8e24bd836", "rev": "22e8de2729f40d29a445c8baeaf22740b8b25daf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -52,11 +52,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1730531603, "lastModified": 1729413321,
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", "narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", "rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -75,11 +75,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1730531603, "lastModified": 1729413321,
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", "narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", "rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26",
"type": "github" "type": "github"
}, },
"original": { "original": {