configuration.nix/home/ivand/default.nix

66 lines
1.4 KiB
Nix

{ pkgs, lib, ... }: {
programs.home-manager = { enable = true; };
home = {
username = "ivand";
homeDirectory = "/home/ivand";
stateVersion = "23.11";
sessionPath = [
"$HOME/.local/bin"
];
pointerCursor = {
name = "Catppuccin-Mocha-Green-Cursors";
package = pkgs.catppuccin-cursors.mochaGreen;
};
};
systemd.user = {
timers = {
rbingwp = {
Timer = {
OnCalendar = "*-*-* 10:00:00";
Persistent = true;
};
Install = {
WantedBy = [ "timers.target" ];
};
};
};
services = {
bingwp = {
Service = {
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"
];
ExecStart = [ "${pkgs.scripts}/bin/bingwp" ];
};
};
rbingwp = {
Service = {
Type = "oneshot";
ExecStart = [ "${pkgs.systemd}/bin/systemctl --user restart bingwp.service" ];
};
};
};
};
programs = {
shell.enable = true;
common.enable = true;
};
xdg.configFile = {
"user-dirs.dirs" = {
text = ''
XDG_DOWNLOAD_DIR="$HOME/dl"
XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_PICTURES_DIR="$HOME/pic"
XDG_VIDEOS_DIR="$HOME/vid"
'';
};
};
}