grimm-nixos-laptop/common/tooling/nix.nix
2024-06-13 22:56:30 +02:00

47 lines
1.0 KiB
Nix

{ pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
(writeShellScriptBin "nixpkgs-review-head" "nixpkgs-review rev HEAD")
(writeShellScriptBin "rebuild" "bash -c \"nixos-rebuild switch |& nom\"")
nixpkgs-review
nixfmt-rfc-style
nixd
nixpkgs-hammering
nix-output-monitor
nix-search-cli
niv
vulnix
nix-init
];
environment.sessionVariables = lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; };
grimmShared.tooling.lang_servers = [
{
lsp.package = pkgs.nil;
fmt = {
package = pkgs.nixpkgs-fmt;
includes = [ "*.nix" ];
};
}
];
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# nix.package = pkgs.nixVersions.latest;
# nix.optimise.automatic = true;
}