Compare commits

...

2 commits

2 changed files with 24 additions and 11 deletions

View file

@ -41,6 +41,20 @@
ifuse ifuse
]; ];
nixpkgs.overlays = [
(final: prev: {
# Because Luck Smith hasn't released in 2 years
mutt-wizard = prev.mutt-wizard.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "LukeSmithxyz";
repo = "mutt-wizard";
rev = "a8863a750a360bad6759f5f2c4df5d2001b31e18";
hash = "sha256-8zPkzQ1Tt9t8G+uCKybBm4yMqfF2y4L7nmuaWWz9t6s=";
};
});
})
];
fonts.packages= with pkgs; [ fonts.packages= with pkgs; [
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji

View file

@ -7,16 +7,12 @@
inputs, inputs,
home-manager, home-manager,
... }: ... }:
{ {
imports = [ imports = [
#inputs.nix-index-db.hmModules.nix-index #inputs.nix-index-db.hmModules.nix-index
]; ];
# systemd.user.services.mailsync = {
#}
home.packages = with pkgs; [ home.packages = with pkgs; [
steam steam
networkmanagerapplet networkmanagerapplet
@ -62,7 +58,6 @@
(octaveFull.withPackages (lib.attrVals ["symbolic"])) (octaveFull.withPackages (lib.attrVals ["symbolic"]))
]; ];
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"]; autoconnect = ["qemu:///system"];
@ -111,10 +106,14 @@
}; };
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
# Dumb mutt-wizard not updating in over a year ExecStart = "${pkgs.mutt-wizard}/bin/mailsync";
ExecStart = "/home/stitchynyan/.config/mutt/mutt-wizard/bin/mailsync";
Environment = [ Environment = [
"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus"
"DISPLAY=:0"
"MBSYNCRC=/home/stitchynyan/.config/mbsync/config"
"PATH=$PATH:${lib.makeBinPath [ pkgs.busybox pkgs.cyrus-sasl-xoauth2 pkgs.gnupg pkgs.isync pkgs.notify pkgs.notmuch pkgs.pass pkgs.perl pkgs.python3 ]}"
"SASL_PATH=/run/current-system/sw/lib/sasl2" "SASL_PATH=/run/current-system/sw/lib/sasl2"
"WAYLAND_DISPLAY=wayland-1"
]; ];
}; };
Install.WantedBy = [ "default.target" ]; Install.WantedBy = [ "default.target" ];
@ -123,7 +122,7 @@
systemd.user.timers = { systemd.user.timers = {
mailsync = { mailsync = {
Unit.Description = "Syncs emai"; Unit.Description = "Syncs email";
Timer = { Timer = {
OnBootSec = "1min"; OnBootSec = "1min";
OnUnitActiveSec = "10min"; OnUnitActiveSec = "10min";