misc: fix defaultEditor option for HM and NixOS modules

This commit is contained in:
Gaetan Lepage 2023-09-18 23:45:50 +02:00 committed by Gaétan Lepage
parent 0ea5e205e6
commit 59232f22b5
2 changed files with 5 additions and 2 deletions

View file

@ -37,7 +37,8 @@ in {
xdg.configFile = files;
})
{
inherit (cfg) warnings assertions defaultEditor;
inherit (cfg) warnings assertions;
home.sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
}
]);
}