mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00:00
lorri: systemd allow access to cache directories
Some nix builds require RW access to `.cache/nix` and `.cache/lorri`.
This commit is contained in:
parent
0e0e966954
commit
4e6d25a51b
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,7 @@ let
|
|||
cfg = config.services.lorri;
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.gerschtli ];
|
||||
meta.maintainers = [ maintainers.gerschtli maintainers.nyarly ];
|
||||
|
||||
options.services.lorri = {
|
||||
enable = mkEnableOption "lorri build daemon";
|
||||
|
@ -55,6 +55,10 @@ in {
|
|||
ReadWritePaths = [
|
||||
# /run/user/1000 for the socket
|
||||
"%t"
|
||||
# Needs to update own cache
|
||||
"%C/lorri"
|
||||
# Needs %C/nix/fetcher-cache-v1.sqlite
|
||||
"%C/nix"
|
||||
"/nix/var/nix/gcroots/per-user/%u"
|
||||
];
|
||||
CacheDirectory = [ "lorri" ];
|
||||
|
|
Loading…
Reference in a new issue