marleyos/modules/home/system/session.nix

34 lines
637 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.marleycfg) profiles;
in {
config = {
home = {
sessionPath = [
"${config.home.homeDirectory}/.local/bin"
];
sessionVariables = {
HACK = "${config.home.homeDirectory}/hackin";
};
shellAbbrs = {
c = "clear";
e = "${config.home.sessionVariables.EDITOR}";
v = "${config.home.sessionVariables.EDITOR}";
};
packages = [
config.marleycfg.apps.pinentry
];
};
marleycfg.apps.pinentry =
if profiles.desktop
then pkgs.pinentry-gtk2
else pkgs.pinentry-curses;
};
}