dotfiles.nix/home-manager/sajenim/global/default.nix

52 lines
946 B
Nix
Raw Normal View History

2024-08-08 09:02:42 +08:00
{
inputs,
outputs,
...
}: {
2024-01-21 21:01:42 +08:00
imports = [
inputs.impermanence.nixosModules.home-manager.impermanence
../features/cli
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
config = {
allowUnfree = true;
2024-08-08 09:02:42 +08:00
allowUnfreePredicate = _: true;
2024-01-21 21:01:42 +08:00
};
};
2024-08-08 09:02:42 +08:00
2024-01-21 21:01:42 +08:00
programs.home-manager.enable = true;
home = {
username = "sajenim";
homeDirectory = "/home/sajenim";
sessionVariables = {
EDITOR = "nvim";
};
persistence."/persist/home/sajenim" = {
directories = [
".gnupg"
".ssh"
2024-07-27 07:46:48 +08:00
".var/app"
2024-01-21 21:01:42 +08:00
".local/bin"
2024-07-26 09:25:43 +08:00
".local/share/flatpak"
2024-01-21 21:01:42 +08:00
".local/share/nix"
2024-04-14 22:03:27 +08:00
".local/share/direnv"
2024-01-21 21:01:42 +08:00
];
files = [
".zsh_history"
];
allowOther = true;
};
};
systemd.user.startServices = "sd-switch";
home.stateVersion = "22.11";
}