modularise the stuff
This commit is contained in:
parent
011009d22f
commit
d1bcbc0fde
16 changed files with 159 additions and 61 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue