Create custom module for system configuration

You can define any custom options you want inside the options attr. See eg https://github.com/NixOS/nixpkgs/blob/9616bc4dc55bf42bbbecaf72b93ee2aa8e71578e/nixos/modules/programs/_1password-gui.nix#L17-L34
Then all previous defined options must be moved to config.