nextcloud: initial skeleton directory derivation

for English and German
This commit is contained in:
teutat3s 2025-02-24 22:30:40 +01:00
parent c8d82dd827
commit 68054a4135
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
11 changed files with 34 additions and 1 deletions
modules/nextcloud
overlays

View file

@ -92,7 +92,7 @@
auth.bruteforce.protection.enabled = true;
trashbin_retention_obligation = "auto,7";
skeletondirectory = "/var/lib/nextcloud/skeleton/{lang}";
skeletondirectory = "${pkgs.nextcloud-skeleton}/{lang}";
defaultapp = "file";
activity_expire_days = "14";
integrity.check.disabled = false;

View file

@ -17,6 +17,7 @@
element-stickerpicker = prev.callPackage ./pkgs/element-stickerpicker {
inherit (inputs) element-stickers maunium-stickerpicker;
};
nextcloud-skeleton = prev.callPackage ./pkgs/nextcloud-skeleton { };
}
)
];

View file

@ -0,0 +1,32 @@
# Based on:
# https://nix.dev/tutorials/working-with-local-files.html#union-explicitly-include-files
{
stdenvNoCC,
lib,
}:
let
fs = lib.fileset;
sourceFiles = fs.unions [
./en/Documents/Example.odt
./en/Pictures/pubsolar.png
./en/Pictures/pubsolar.svg
./en/Readme.md
./de/Dokumente/Beispiel.odt
./de/Fotos/pubsolar.png
./de/Fotos/pubsolar.svg
./de/Liesmich.md
];
in
fs.trace sourceFiles
stdenvNoCC.mkDerivation {
name = "nextcloud-skeleton";
src = fs.toSource {
root = ./.;
fileset = sourceFiles;
};
postInstall = ''
cp -vr . $out
'';
}