Add support for NixOS modules

This commit is contained in:
2025-07-11 10:30:15 +02:00
parent 887b4b09ec
commit c21570f912
3 changed files with 44 additions and 1 deletions

16
systemModule.nix Normal file
View File

@@ -0,0 +1,16 @@
flake: {
config,
lib,
system,
...
}: let
cfg = config.programs.base-editor;
in {
options.programs.base-editor = {
enable = lib.mkEnableOption "BASE Editor";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [flake.packages.${system}.default];
};
}