WIP: modules/debug-locations
Some checks failed
Eval nix flake / evals (push) Failing after 1m45s

This commit is contained in:
2024-04-02 00:26:16 +02:00
parent fde69ca283
commit 9f355eff0d
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{ config, lib, ... }:
let
cfg = config.environment.debug-locations;
in
{
options.environment.debug-locations = lib.mkOption {
description = "Paths and derivations to symlink in `/etc/debug`";
type = with lib.types; attrsOf path;
default = { };
};
config.environment.etc = lib.mapAttrs' (k: v: lib.nameValuePair "debug/${k}" { source = v; }) cfg;
}