grimm-nixos-laptop/common/tooling/nix.nix

47 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-11 22:55:59 +02:00
{ pkgs, lib, ... }:
2024-04-27 10:51:53 +02:00
{
environment.systemPackages = with pkgs; [
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
(writeShellScriptBin "nixpkgs-review-head" "nixpkgs-review rev HEAD")
2024-05-07 13:13:37 +02:00
(writeShellScriptBin "rebuild" "bash -c \"nixos-rebuild switch |& nom\"")
2024-04-27 10:51:53 +02:00
nixpkgs-review
2024-05-06 23:22:32 +02:00
nixfmt-rfc-style
2024-04-27 10:51:53 +02:00
nixd
2024-05-06 23:22:32 +02:00
nixpkgs-hammering
2024-04-27 10:51:53 +02:00
nix-output-monitor
nix-search-cli
2024-05-07 12:19:14 +02:00
niv
2024-05-08 21:49:37 +02:00
vulnix
2024-06-13 22:56:30 +02:00
nix-init
2024-04-27 10:51:53 +02:00
];
2024-05-07 23:31:41 +02:00
environment.sessionVariables = lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; };
2024-04-27 14:20:48 +02:00
2024-05-15 23:24:35 +02:00
grimmShared.tooling.lang_servers = [
{
2024-05-30 22:12:15 +02:00
lsp.package = pkgs.nil;
2024-05-15 23:24:35 +02:00
fmt = {
package = pkgs.nixpkgs-fmt;
includes = [ "*.nix" ];
};
}
];
2024-04-27 10:51:53 +02:00
2024-04-30 12:08:28 +02:00
nix.settings = {
2024-05-07 23:31:41 +02:00
experimental-features = [
"nix-command"
"flakes"
];
2024-04-30 12:08:28 +02:00
warn-dirty = false;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
2024-05-11 22:55:59 +02:00
2024-05-07 12:19:14 +02:00
# nix.package = pkgs.nixVersions.latest;
2024-05-31 17:33:40 +02:00
# nix.optimise.automatic = true;
2024-04-27 10:51:53 +02:00
}