update config

This commit is contained in:
stitchy 2024-01-24 04:02:43 +00:00
parent 8a58079706
commit 3050a5bd98
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
5 changed files with 96 additions and 17 deletions

30
users/nyadmin/home.nix Normal file
View file

@ -0,0 +1,30 @@
{ config,
nixosConfig,
pkgs,
inputs,
home-manager,
... }:
{
imports = [
#inputs.nix-index-db.hmModules.nix-index
];
# systemd.user.services.mailsync = {
#}
home.packages = with pkgs; [
];
#programs.hyprland.enable = true;
# hyprland.homeManagerModules.default
#wayland.windowManager.hyprland.enable = true;
# Read the Docs before change
#home.stateVersion = "23.05";
#home.homeDirectory = "/home/stitchynyan";
}

View file

@ -25,7 +25,6 @@
neomutt
dunst
mutt-wizard
cyrus-sasl-xoauth2
pass
isync
msmtp
@ -44,6 +43,7 @@
swaylock-effects
qt5ct
qt6ct
mpv
];
#programs.hyprland.enable = true;
# hyprland.homeManagerModules.default
@ -56,6 +56,37 @@
};
};
systemd.user.services = {
mailsync = {
Unit = {
Description = "Syncs email";
After = [ "network-online.target" ];
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.mutt-wizard}/bin/mailsync";
Environment = [
"SASL_PATH=/run/current-system/sw/lib/sasl2"
"LOGNAME=stitchynyan"
"USER=stitchynyan" ];
};
Install.WantedBy = [ "default.target" ];
};
};
systemd.user.timers = {
mailsync = {
Unit.Description = "Syncs emai";
Timer = {
OnBootSec = "1min";
OnUnitActiveSec = "10min";
};
Install.WantedBy = [ "timers.target" ];
};
};
# Read the Docs before change
home.stateVersion = "23.05";
home.homeDirectory = "/home/stitchynyan";