2025-01-15 08:00:00 +00:00
|
|
|
{ lib, username, ... }:
|
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
{
|
2023-08-08 19:15:31 +00:00
|
|
|
home.username = "${username}";
|
|
|
|
home.homeDirectory = "/home/${username}";
|
|
|
|
|
2024-09-23 01:32:07 +00:00
|
|
|
# Nicely reload system units when changing configs.
|
|
|
|
systemd.user.startServices = "sd-switch";
|
|
|
|
|
2024-11-12 20:03:29 +00:00
|
|
|
# See https://github.com/nix-community/home-manager/issues/2064#issuecomment-2259307514.
|
|
|
|
# This is a workaround for the following errors that appeared when switching back to unstable:
|
|
|
|
# - 1: Failed to start unit flameshot.service
|
|
|
|
# - 2: org.freedesktop.systemd1.NoSuchUnit: Unit tray.target not found.
|
|
|
|
systemd.user.targets.tray = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Home Manager System Tray";
|
|
|
|
Requires = [ "graphical-session-pre.target" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-08-08 19:15:31 +00:00
|
|
|
home.stateVersion = "22.05";
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
features = lib.mkMerge [
|
|
|
|
{
|
|
|
|
cli = {
|
|
|
|
neovim.enable = lib.mkDefault true;
|
|
|
|
tmux.enable = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
|
|
|
|
desktop = {
|
2025-01-04 21:07:45 +00:00
|
|
|
alacritty.enable = lib.mkDefault true;
|
2024-11-26 08:13:46 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-08-08 19:15:31 +00:00
|
|
|
}
|