-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add example of applying same aspect on linux and darwin #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a concrete example showing how to apply the same aspect across Linux (NixOS) and macOS, and slightly clarifies prior wording.
- Clarifies sentence about where aspects are applied.
- Adds a Nix code example demonstrating cross-OS reuse of the scrolling-desktop aspect.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| instead of where they are applied. | ||
| instead of where they are specifically applied. | ||
|
|
||
| In the following example, the `scrolling-desktop` aspect is included accross different operating systems: |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'accross' to 'across'.
| In the following example, the `scrolling-desktop` aspect is included accross different operating systems: | |
| In the following example, the `scrolling-desktop` aspect is included across different operating systems: |
| instead of where they are specifically applied. | ||
|
|
||
| In the following example, the `scrolling-desktop` aspect is included accross different operating systems: | ||
| On Linux, `flake.modules.nixos.scrolling-destop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on MacOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'scrolling-destop' to 'scrolling-desktop'.
| On Linux, `flake.modules.nixos.scrolling-destop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on MacOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). | |
| On Linux, `flake.modules.nixos.scrolling-desktop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on MacOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). |
| instead of where they are specifically applied. | ||
|
|
||
| In the following example, the `scrolling-desktop` aspect is included accross different operating systems: | ||
| On Linux, `flake.modules.nixos.scrolling-destop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on MacOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Apple's correct casing: 'macOS' instead of 'MacOS'.
| On Linux, `flake.modules.nixos.scrolling-destop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on MacOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). | |
| On Linux, `flake.modules.nixos.scrolling-destop` might enable [`niri`](https://variety4me.github.io/niri_docs/) and on macOS, `flake.modules.darwin.scrolling-desktop` might enable [`PaperWM.spoon`](https://github.com/mogenson/PaperWM.spoon). |
| { inputs, ... }: | ||
| { | ||
| flake.nixosConfigurations.my-host = inputs.nixpkgs.lib.nixosSystem { | ||
| system = "aarm64-linux"; |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid Nix system identifier; use 'aarch64-linux' instead of 'aarm64-linux'.
| system = "aarm64-linux"; | |
| system = "aarch64-linux"; |
| modules = with inputs.self.modules.nixos; [ ai ssh vpn mac-like-keyboard scrolling-desktop ]; | ||
| }; | ||
| flake.darwinConfigurations.my-host = inputs.nix-darwin.lib.darwinSystem { | ||
| system = "aarm64-darwin"; |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid Nix system identifier; use 'aarch64-darwin' instead of 'aarm64-darwin'.
| system = "aarm64-darwin"; | |
| system = "aarch64-darwin"; |
No description provided.