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

This commit is contained in:
Oystein Kristoffer Tveit 2024-04-02 00:26:16 +02:00
parent fde69ca283
commit 9f355eff0d
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,7 @@
imports = [ imports = [
./users ./users
./modules/snakeoil-certs.nix ./modules/snakeoil-certs.nix
./modules/debug-locations.nix
]; ];
networking.domain = "pvv.ntnu.no"; networking.domain = "pvv.ntnu.no";

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;
}