wie viel koffein hat kolle?
curl -s https://fussel.space/mate/index.json | jq '. | select(.name == "kolle-mate") .caffeine'
@erictapen thank you, i did not know about writeTextFile (only writeText). the problem i see with it is that gitolite.nix tries to copy the result (/store/abc123-post-receive, not /store/abc123-post-receive/post-receive). i could probably just modify gitolite.nix or use the function independently of gitolite.customHooks.
how to create files without hash-prefix? i need a file „post-receive“, not „abc123-post-receive“ when specifying a list of type.path in https://nixos.org/nixos/options.html#services.gitolite.commonhooks #nixos
@erictapen hey, thank you for the links! umask, however, will only be applied to /foo/bar/repositories and its subdirectories - not /foo/bar itself. permissions on /foo/bar get set when creating gitolites dataDir.
systemd.tmpfiles.rules looks pretty good (way more fitting than system.activationScripts) but is probably not needed if the chmod could happen directly in the init service.
i've created a very small pr, what do you think? https://github.com/NixOS/nixpkgs/pull/63668
i'd like to use #nixos/#nixops to install gitolite and gitweb. both, gitolites and lighttpds, users share a group. repos live inside /foo/bar/repositories which is owned by gitolite. however, lighttpd can't access the directory, since /foo/bar s permissions are 0700 by default.
currently i use system. activationScripts to more or less manually set g+rx on /foo/bar, but that seems wrong.
would it be better to, for example, modify the script creating the directory? https://github.com/NixOS/nixpkgs/blob/release-19.03/nixos/modules/services/misc/gitolite.nix#L162
Verzweifelte Zeiten erfordern verzweifelte Verzweiflungstaten.