mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-25 15:09:23 +08:00
22 lines
555 B
Nix
22 lines
555 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";
|
|
};
|
|
}];
|
|
packages.packages._packages = [ inputs.pkgs.helix ];
|
|
};
|
|
};
|
|
}
|