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

69 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-29 22:48:01 +01:00
{
pkgs,
lib,
inputs,
system,
...
}:
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")
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-11-26 19:18:50 +01:00
nvd
2024-05-08 21:49:37 +02:00
vulnix
2024-06-13 22:56:30 +02:00
nix-init
2024-11-29 22:48:01 +01:00
inputs.nixpkgs-update.packages."${system}".default
2024-04-27 10:51:53 +02:00
];
2024-11-25 14:27:52 +01:00
environment.sessionVariables =
(lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; })
// {
NH_NOM = 1;
};
environment.shellAliases."rebuild" = "nixos-rebuild switch |& nom";
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-12-21 21:53:10 +01:00
"pipe-operator"
2024-05-07 23:31:41 +02:00
];
2024-04-30 12:08:28 +02:00
warn-dirty = false;
};
2024-11-25 14:27:52 +01:00
programs.nh = {
enable = true;
# clean.enable = true;
clean.extraArgs = "--keep-since 14d --keep 16";
flake = "/etc/nixos";
};
2024-04-30 12:08:28 +02:00
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
}