modularise the stuff

This commit is contained in:
tristan 2023-05-08 16:59:12 +01:00
parent 011009d22f
commit d1bcbc0fde
16 changed files with 159 additions and 61 deletions

View file

@ -2,6 +2,8 @@
with lib;
let
cfg = config.roles.email;
terminal = config.programs.terminal.package;
termcmd = "${terminal}/bin/${terminal.pname}";
in
{
options.roles = {
@ -18,6 +20,18 @@ in
};
config = mkIf cfg.enable {
programs.scripts = [
{
name = "email";
text = ''
${termcmd} -e aerc
'';
install = false;
hotkeys = [{key = "E";}];
}
];
home-manager.users.${user}.imports = [{
programs.git = {
userName = userName;