dotfiles/modules/common/programming/nix.nix

22 lines
341 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2022-06-20 23:51:03 +00:00
2022-12-21 21:18:03 +00:00
options.nixlang.enable = lib.mkEnableOption "Nix programming language.";
2022-06-27 02:15:25 +00:00
2022-12-21 21:18:03 +00:00
config = lib.mkIf config.nixlang.enable {
home-manager.users.${config.user} = {
home.packages = with pkgs; [
nixfmt-rfc-style # Nix file formatter
2022-12-21 21:18:03 +00:00
nil # Nix language server
];
};
2022-06-27 02:15:25 +00:00
};
2022-06-20 23:51:03 +00:00
}