configuration.nix/home/ivand/default.nix

90 lines
2.5 KiB
Nix
Raw Normal View History

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 = {
wpd = {
Service = {
Environment = [
"PATH=${pkgs.xdg-user-dirs}/bin:${pkgs.swaybg}/bin"
];
2024-04-19 15:10:16 +02:00
ExecStart = [ "${pkgs.nushell}/bin/nu -c 'swaybg -i ((xdg-user-dir PICTURES) | path split | path join bg.png)'" ];
};
};
2023-10-05 20:32:08 +02:00
bingwp = {
2023-10-14 08:33:31 +02:00
Service = {
Type = "oneshot";
2023-11-14 20:00:01 +01:00
Environment = [
2024-04-04 10:09:22 +02:00
"PATH=${pkgs.xdg-user-dirs}/bin:${pkgs.nushell}/bin"
2023-11-14 20:00:01 +01:00
];
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 = {
2024-04-19 15:31:56 +02:00
Unit = {
Description = "Restart bingwp and wpd services";
After = "sway-session.target";
};
2023-11-15 06:44:52 +01:00
Service = {
Type = "oneshot";
ExecStart = [ "${pkgs.nushell}/bin/nu -c '${pkgs.systemd}/bin/systemctl --user restart bingwp.service; ${pkgs.systemd}/bin/systemctl --user restart wpd.service'" ];
2023-11-15 06:44:52 +01:00
};
};
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";
2023-12-22 20:19:49 +01:00
templates = "${home.homeDirectory}/tpl";
2023-11-26 15:31:02 +01:00
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