dotfiles/modules/common/programming/nix.nix

19 lines
326 B
Nix
Raw Permalink 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 # Nix file formatter
nil # Nix language server
];
};
2022-06-27 02:15:25 +00:00
};
2022-06-20 23:51:03 +00:00
}