dotfiles/nixos/home-manager.nix

172 lines
3.9 KiB
Nix
Raw Normal View History

inputs: { pkgs, config, ... }: {
2021-07-13 03:37:03 -06:00
xsession = {
2021-07-13 10:47:09 -06:00
enable = true;
2021-07-13 03:37:03 -06:00
preferStatusNotifierItems = true;
importedVariables = [ "GDK_PIXBUF_ICON_LOADER" ];
2021-07-13 03:37:03 -06:00
};
2021-07-13 10:47:09 -06:00
home.keyboard = null;
2021-07-13 03:37:03 -06:00
home.emptyActivationPath = false;
programs.home-manager.enable = true;
programs.ssh = {
forwardAgent = true;
};
2022-09-27 09:38:29 -06:00
services.xscreensaver = {
enable = true;
};
2021-07-13 03:37:03 -06:00
services.gpg-agent = {
enable = true;
defaultCacheTtl = 8 * 60 * 60;
maxCacheTtl = 8 * 60 * 60;
enableSshSupport = true;
2022-09-27 09:38:29 -06:00
pinentryFlavor = "qt";
2021-07-13 03:37:03 -06:00
};
services.blueman-applet = {
enable = false;
2021-07-13 03:37:03 -06:00
};
services.taffybar = {
enable = true;
package = inputs.imalison-taffybar.defaultPackage."${pkgs.system}";
2021-07-13 03:37:03 -06:00
};
2021-07-18 20:19:06 -06:00
services.notify-osd = {
enable = true;
package = pkgs.notify-osd-customizable;
};
2021-07-13 03:37:03 -06:00
services.kdeconnect = {
enable = true;
indicator = true;
};
services.network-manager-applet.enable = true;
services.udiskie = {
enable = true;
tray = "always";
};
services.status-notifier-watcher.enable = true;
services.random-background = {
enable = true;
2022-09-27 09:38:29 -06:00
display = "fill";
2021-07-13 03:37:03 -06:00
interval = "1h";
imageDirectory = "%h/Pictures/wallpaper/use";
};
services.xsettingsd.enable = true;
services.volnoti.enable = true;
2021-08-03 11:32:37 -06:00
services.parcellite = {
enable = true;
package = pkgs.clipit;
};
services.git-sync = {
enable = true;
2021-08-17 23:43:01 -06:00
repositories = {
config = {
path = config.home.homeDirectory + "/config";
2021-07-18 09:50:45 -06:00
uri = "git@github.com:IvanMalison/config.git";
2021-08-17 23:43:01 -06:00
};
org = {
path = config.home.homeDirectory + "/org";
2021-07-18 09:50:45 -06:00
uri = "git@github.com:IvanMalison/org.git";
2021-08-17 23:43:01 -06:00
};
password-store = {
2021-08-22 22:44:59 -06:00
path = config.home.homeDirectory + "/.password-store";
uri = "git@github.com:IvanMalison/.password-store.git";
2021-08-17 23:43:01 -06:00
};
};
};
2021-07-18 20:20:00 -06:00
systemd.user.services.setxkbmap = {
Unit = {
Description = "Set up keyboard in X";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "/usr/bin/env load_xkb_map";
};
};
systemd.user.services.notifications-tray-icon = {
Unit = {
Description = "Notifications tray icon";
After = [ "graphical-session-pre.target" "tray.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
ExecStart = "${pkgs.haskellPackages.notifications-tray-icon}/bin/notifications-tray-icon --github-token-pass dfinity-github-api-token";
Restart = "always";
RestartSec = 3;
};
};
2023-07-28 11:58:43 -06:00
systemd.user.services.shutter = {
Unit = {
Description = "Shutter";
After = [ "graphical-session-pre.target" "tray.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
ExecStart = "${pkgs.shutter}/bin/shutter --min_at_startup";
Restart = "always";
RestartSec = 3;
};
};
systemd.user.services.discord = {
Unit = {
Description = "Discord";
After = [ "graphical-session-pre.target" "tray.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
ExecStart = "${pkgs.discord}/opt/Discord/Discord --start-minimized";
Restart = "always";
RestartSec = 3;
};
};
2021-07-18 20:20:00 -06:00
systemd.user.services.picom = {
Unit = {
Description = "Picom X11 compositor";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
2021-08-03 10:09:34 -06:00
ExecStart = "${pkgs.picom}/bin/picom --experimental-backends";
2021-07-18 20:20:00 -06:00
Restart = "always";
RestartSec = 3;
};
};
home.stateVersion = "21.05";
2021-07-13 03:37:03 -06:00
}