Skip to content

Conversation

@HeitorAugustoLN
Copy link
Contributor

@HeitorAugustoLN HeitorAugustoLN commented Oct 25, 2025

Closes #5

Copilot AI review requested due to automatic review settings October 25, 2025 00:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for standalone home-manager configurations in den, allowing users to define home environments independent of NixOS/Darwin host configurations. The key structural change is moving host definitions under den.hosts (from den) and adding a new den.homes option for standalone home configurations.

Key Changes:

  • Added standalone home-manager configuration support via den.homes
  • Refactored host definitions to be nested under den.hosts instead of directly under den
  • Added input name override capabilities for nixpkgs, darwin, and home-manager dependencies

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
templates/default/modules/_example/hosts.nix Updated to use new den.hosts path for host definitions
templates/default/modules/_example/homes.nix New example file demonstrating standalone home-manager configurations
nix/types.nix Added homesOption, homeType, and inputsOption types; renamed denOption to hostsOption
nix/os-config.nix Updated to use config.den.hosts and support input name overrides
nix/home-config.nix New file implementing standalone home-manager configuration instantiation
nix/flakeModule.nix Added new imports and options for homes and inputs configuration
nix/aspects-config.nix Extended aspect system to support standalone homes alongside hosts
README.md Added documentation for standalone home-manager configurations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings October 25, 2025 00:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings October 25, 2025 00:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Owner

@vic vic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow ! looks awesome!

I left some changes request, thank you again :)

Copilot AI review requested due to automatic review settings October 25, 2025 13:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +21 to +26
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
url = "github:nix-community/home-manager";
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The url attribute should be defined before the inputs attribute for better readability and consistency with Nix conventions. Move line 26 to line 20.

Suggested change
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};

Copilot uses AI. Check for mistakes.
Comment on lines +3 to +6
config,
inputs,
lib,
config,
self,
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The parameter order has been changed from alphabetical (config, inputs, lib) to (config, inputs, lib, self). Consider maintaining alphabetical ordering for consistency: (config, inputs, lib, self) is already correct, but the original order (inputs, lib, config) suggests a different convention may have been in use. Ensure this change aligns with project conventions.

Copilot uses AI. Check for mistakes.
- Rename denOption to hostsOption in types.nix
- Change options.den to options.den.hosts in flakeModule.nix
- Update all references to use config.den.hosts instead of config.den
Copilot AI review requested due to automatic review settings October 25, 2025 13:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Add den.homes option for standalone home-manager configurations
- Create home-config.nix to instantiate homeConfigurations
- Add homeType and homesOption to types.nix
- Extend aspects-config.nix with homeAspect and default.home
- Add example homes.nix template
Allow arbitrary additional attributes beyond defined options
Copilot AI review requested due to automatic review settings October 25, 2025 13:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vic vic merged commit ee16877 into vic:main Oct 25, 2025
2 checks passed
@vic
Copy link
Owner

vic commented Oct 25, 2025

Thank you, @HeitorAugustoLN

@HeitorAugustoLN HeitorAugustoLN deleted the standalone-home branch October 25, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

standalone home-manager

2 participants