Skip to content

Flarum: Projects-old -> Projects#779

Merged
eljamm merged 5 commits into
ngi-nix:mainfrom
OluchiTheAnalyst:flarum-migration
Apr 11, 2025
Merged

Flarum: Projects-old -> Projects#779
eljamm merged 5 commits into
ngi-nix:mainfrom
OluchiTheAnalyst:flarum-migration

Conversation

@OluchiTheAnalyst
Copy link
Copy Markdown
Contributor

@OluchiTheAnalyst OluchiTheAnalyst commented Apr 10, 2025

Copy the template in template/project to the projects directory and rename it as Flarum. Then move the information contained in the projects-old/flarum directory into the projects/flarum directory.

@OluchiTheAnalyst
Copy link
Copy Markdown
Contributor Author

@eljamm Please could you review this?

Comment thread projects/Flarum/default.nix Outdated
module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/flarum.nix";
examples.basic = {
module = ./services/Flarum/examples/basic.nix;
description = "Flarum is a delightfully simple discussion platform for your website";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a description for the example, not the project

Suggested change
description = "Flarum is a delightfully simple discussion platform for your website";
description = "";

Comment thread projects/Flarum/default.nix Outdated
module = ./programs/Flarum/module.nix;
examples.basic = {
module = ./programs/Flarum/examples/basic.nix;
description = "Discussion community";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a description for the example, not the project

{ ... }:

{
programs.Flarum.enable = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be lower case

Suggested change
programs.Flarum.enable = true;
programs.flarum.enable = true;

Comment on lines +8 to +11
cfg = config.programs.Flarum;
in
{
options.programs.Flarum = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
cfg = config.programs.Flarum;
in
{
options.programs.Flarum = {
cfg = config.programs.flarum;
in
{
options.programs.flarum = {

{ ... }:

{
programs.Flarum.enable = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
programs.Flarum.enable = true;
programs.flarum.enable = true;

@OluchiTheAnalyst OluchiTheAnalyst force-pushed the flarum-migration branch 2 times, most recently from 5f481cc to 51cc193 Compare April 10, 2025 16:09
Comment thread projects/Flarum/default.nix Outdated
Comment on lines +18 to +23
module = ./programs/Flarum/module.nix;
examples.basic = {
module = ./programs/Flarum/examples/basic.nix;
description = "";
tests.basic = null;
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about we just do this? Just don't forget to create the files

Suggested change
module = ./programs/Flarum/module.nix;
examples.basic = {
module = ./programs/Flarum/examples/basic.nix;
description = "";
tests.basic = null;
};
module = ./module.nix;
examples.basic = {
module = ./programs-example.nix;
description = "";
tests.basic = null;
};

Comment thread projects/Flarum/default.nix Outdated
name = "flarum";
module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/flarum.nix";
examples.basic = {
module = ./services/Flarum/examples/basic.nix;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
module = ./services/Flarum/examples/basic.nix;
module = ./service-example.nix;

@OluchiTheAnalyst
Copy link
Copy Markdown
Contributor Author

@eljamm Done!

Comment thread projects/Flarum/services-example.nix Outdated
@@ -0,0 +1,4 @@
{ ... }:
{
programs.flarum.enable = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this is an example for the service

Suggested change
programs.flarum.enable = true;
services.flarum.enable = true;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Contributor

@eljamm eljamm left a comment

Choose a reason for hiding this comment

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

Looks good!

@eljamm eljamm merged commit ee1171f into ngi-nix:main Apr 11, 2025
2 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Nix@NGI Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants