mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:38:44 +08:00
18 lines
459 B
Nix
18 lines
459 B
Nix
inputs:
|
|
{
|
|
options.nixos.packages.helix = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{ type = types.nullOr (types.submodule {}); default = {}; };
|
|
config = let inherit (inputs.config.nixos.packages) helix; in inputs.lib.mkIf (helix != null)
|
|
{
|
|
nixos.user.sharedModules =
|
|
[{
|
|
config.programs.helix =
|
|
{
|
|
enable = true;
|
|
defaultEditor = true;
|
|
settings.theme = "catppuccin_latte";
|
|
};
|
|
}];
|
|
};
|
|
}
|