update config
This commit is contained in:
parent
8a58079706
commit
3050a5bd98
5 changed files with 96 additions and 17 deletions
30
users/nyadmin/home.nix
Normal file
30
users/nyadmin/home.nix
Normal 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";
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue