WIP: modules/debug-locations
This commit is contained in:
parent
fde69ca283
commit
9f355eff0d
1
base.nix
1
base.nix
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
./users
|
||||
./modules/snakeoil-certs.nix
|
||||
./modules/debug-locations.nix
|
||||
];
|
||||
|
||||
networking.domain = "pvv.ntnu.no";
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue