dotfiles/modules/common/programming/nix.nix

16 lines
333 B
Nix
Raw Normal View History

2022-12-21 21:18:03 +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
}