feat: massive refactor
This commit is contained in:
@@ -3,15 +3,16 @@
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "zed-editor";
|
||||
optionPath = [
|
||||
"coding"
|
||||
"editor"
|
||||
"zed"
|
||||
];
|
||||
extraConfig = {
|
||||
let
|
||||
cfg = config.my.coding.editor.zed;
|
||||
in
|
||||
{
|
||||
options.my.coding.editor.zed = {
|
||||
enable = lib.mkEnableOption "zed-editor";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm.programs.zed-editor.enable = true;
|
||||
my.persist.homeDirs = [
|
||||
".config/zed"
|
||||
".local/share/zed"
|
||||
|
||||
Reference in New Issue
Block a user