dotfiles/modules/common/programming/nix.nix
2024-04-20 09:42:06 -04:00

22 lines
341 B
Nix

{
config,
pkgs,
lib,
...
}:
{
options.nixlang.enable = lib.mkEnableOption "Nix programming language.";
config = lib.mkIf config.nixlang.enable {
home-manager.users.${config.user} = {
home.packages = with pkgs; [
nixfmt-rfc-style # Nix file formatter
nil # Nix language server
];
};
};
}