2023-11-26 15:31:02 +01:00
|
|
|
{ pkgs, lib, ... }: rec {
|
2023-08-12 14:35:08 +02:00
|
|
|
|
|
|
|
programs.home-manager = { enable = true; };
|
|
|
|
|
|
|
|
home = {
|
|
|
|
username = "ivand";
|
|
|
|
homeDirectory = "/home/ivand";
|
2023-09-09 10:12:43 +02:00
|
|
|
stateVersion = "23.11";
|
2023-10-15 07:46:48 +02:00
|
|
|
sessionPath = [
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
];
|
2023-08-12 14:35:08 +02:00
|
|
|
pointerCursor = {
|
2023-10-01 17:35:46 +02:00
|
|
|
name = "Catppuccin-Mocha-Green-Cursors";
|
|
|
|
package = pkgs.catppuccin-cursors.mochaGreen;
|
2023-08-12 14:35:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-05 20:32:08 +02:00
|
|
|
systemd.user = {
|
|
|
|
timers = {
|
2023-11-15 06:44:52 +01:00
|
|
|
rbingwp = {
|
2023-10-09 23:03:04 +02:00
|
|
|
Timer = {
|
2023-11-06 10:29:09 +01:00
|
|
|
OnCalendar = "*-*-* 10:00:00";
|
2023-10-05 20:32:08 +02:00
|
|
|
Persistent = true;
|
|
|
|
};
|
2023-10-09 23:03:04 +02:00
|
|
|
Install = {
|
|
|
|
WantedBy = [ "timers.target" ];
|
|
|
|
};
|
2023-10-05 20:32:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
bingwp = {
|
2023-10-14 08:33:31 +02:00
|
|
|
Service = {
|
2023-11-14 20:00:01 +01:00
|
|
|
Environment = [
|
|
|
|
"PATH=${pkgs.curl}/bin:${pkgs.wget}/bin:${pkgs.xdg-user-dirs}/bin:${pkgs.jq}/bin:${pkgs.busybox}/bin:${pkgs.bash}/bin:${pkgs.swaybg}/bin"
|
|
|
|
"WAYLAND_DISPLAY=wayland-1"
|
|
|
|
];
|
2023-11-04 12:48:07 +01:00
|
|
|
ExecStart = [ "${pkgs.scripts}/bin/bingwp" ];
|
2023-10-05 20:32:08 +02:00
|
|
|
};
|
|
|
|
};
|
2023-11-15 06:44:52 +01:00
|
|
|
rbingwp = {
|
|
|
|
Service = {
|
|
|
|
Type = "oneshot";
|
|
|
|
ExecStart = [ "${pkgs.systemd}/bin/systemctl --user restart bingwp.service" ];
|
|
|
|
};
|
|
|
|
};
|
2023-10-05 20:32:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-26 15:31:02 +01:00
|
|
|
xdg = {
|
|
|
|
userDirs = {
|
|
|
|
enable = true;
|
|
|
|
createDirectories = true;
|
|
|
|
desktop = "${home.homeDirectory}/dt";
|
|
|
|
documents = "${home.homeDirectory}/doc";
|
|
|
|
download = "${home.homeDirectory}/dl";
|
|
|
|
pictures = "${home.homeDirectory}/pic";
|
|
|
|
videos = "${home.homeDirectory}/vid";
|
|
|
|
templates = "${home.homeDirectory}/templates";
|
|
|
|
publicShare = "${home.homeDirectory}/pub";
|
|
|
|
music = "${home.homeDirectory}/mus";
|
2023-08-12 14:35:08 +02:00
|
|
|
};
|
2023-11-26 15:53:01 +01:00
|
|
|
mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
2023-11-26 17:00:16 +01:00
|
|
|
"text/html" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/http" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/https" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/about" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/unknown" = "firefox.desktop";
|
2023-11-26 15:53:01 +01:00
|
|
|
"x-scheme-handler/mailto" = "userapp-Thunderbird-LDALA2.desktop";
|
|
|
|
"message/rfc822" = "userapp-Thunderbird-LDALA2.desktop";
|
|
|
|
"x-scheme-handler/mid" = "userapp-Thunderbird-LDALA2.desktop";
|
|
|
|
};
|
|
|
|
};
|
2023-08-12 14:35:08 +02:00
|
|
|
};
|
2023-08-09 22:10:48 +02:00
|
|
|
}
|
2023-10-05 20:32:08 +02:00
|
|
|
|