nixos/modules/dev/nil.nix

17 lines
280 B
Nix
Raw Normal View History

2023-08-06 11:55:44 +04:00
{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.dev.nil;
in
{
options.modules.dev.nil = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-08-06 11:55:44 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-08-06 11:55:44 +04:00
environment.systemPackages = with pkgs; [
nil
2023-08-06 18:57:50 +04:00
alejandra
2023-08-06 11:55:44 +04:00
];
};
}