Skip to content

gitit: Remove staticDir and templatesDir#9962

Closed
matthiasbeyer wants to merge 2 commits intoNixOS:masterfrom
matthiasbeyer:fix-gitit-service
Closed

gitit: Remove staticDir and templatesDir#9962
matthiasbeyer wants to merge 2 commits intoNixOS:masterfrom
matthiasbeyer:fix-gitit-service

Conversation

@matthiasbeyer
Copy link
Contributor

as these cannot be overridden if specified here.


My attempt to fix #9863. I don't know whether this is a step in the right direction or not.

Ping to all haskellers I can find, because I have no clue who is responsible for the service file
CC: @gebner @gridaphobe @jb55 @khumba @psibi @ttuegel

as these cannot be overridden if specified here.
@khumba
Copy link
Contributor

khumba commented Sep 20, 2015 via email

@matthiasbeyer
Copy link
Contributor Author

@khumba Good idea!

@edwtjo
Copy link
Member

edwtjo commented Sep 20, 2015

As the author of the module I would like to have these options available, which I'm using in a private module. For nixpkgs, it was commit 99750d8 that essentially made them useless.

@khumba that would require evaluation of the haskellPackages set.

I would recommend setting them null by default and changing the type to nullOr. Also checking for null in the config inclusion.

@matthiasbeyer
Copy link
Contributor Author

@edwtjo Sorry I do not understand your comment. Shall I set these options to null by default?

What's funny: As far as I can see, the path for the static and template dir is hard coded to the store itself in the service definition. And there is no way to override a service, is there? So this package is rather useless as-is.

@edwtjo
Copy link
Member

edwtjo commented Sep 20, 2015

@matthiasbeyer yes that is what I meant, but also modify configFile. Anyway these alterations will just be ugly hacks, let's avoid those on second thought.

And there is no way to override a service, is there? So this package is rather useless as-is.

I'm not exactly sure what you mean but no 99750d8 was not a very good idea. So since @edolstra don't want the computational and storage overhead with the module; The only correct way to move forward is to remove gitit.nix from the module list, reverting 99750d8 and instead requiring it to be manually added into your configuration.nix. Which was done in 122d5e4 and aeba3ea

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.

[gitit]: Cannot override staticDir or templatesDir

3 participants