hm-modules: the great refactoring part 1
This commit is contained in:
parent
1b2f5d6094
commit
b7ccaf8285
11 changed files with 29 additions and 39 deletions
14
homeManagerModules/desktopPrograms/zed/default.nix
Normal file
14
homeManagerModules/desktopPrograms/zed/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.programs.zed = {
|
||||
enable = lib.mkEnableOption "enable zed editor";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.programs.zed.enable {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = [ "nix" ];
|
||||
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue