Add support for NixOS modules
This commit is contained in:
16
systemModule.nix
Normal file
16
systemModule.nix
Normal 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];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user