From 5a17b705d8a239ff4a915e0cdd8d214d85522073 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 17 Jul 2024 19:34:28 +0200 Subject: [PATCH] checks: add fake external storage module --- packages/checks/modules/nixos/external-storage.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/checks/modules/nixos/external-storage.nix diff --git a/packages/checks/modules/nixos/external-storage.nix b/packages/checks/modules/nixos/external-storage.nix new file mode 100644 index 0000000..d89f9df --- /dev/null +++ b/packages/checks/modules/nixos/external-storage.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: + +{ + systemd.tmpfiles.settings."00-testing-external-storage-underlays" = lib.mapAttrs' (name: cfg: { + name = cfg.mountpoint; + value.d = { + user = toString cfg.uid; + group = toString cfg.gid; + mode = "0700"; + }; + }) config.services.external-storage.underlays; +}