mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
19 lines
323 B
Nix
19 lines
323 B
Nix
{...}: {
|
|
flake.modules.nixos.core = {
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.tnix.programs.nix-ld;
|
|
in {
|
|
options.tnix.programs.nix-ld = {
|
|
enable = mkEnableOption "nix-ld";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nix-ld.enable = true;
|
|
};
|
|
};
|
|
}
|