From bf46e2283399602fb39aeb27567a7c9cffa0123b 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; +}