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

34 lines
1.0 KiB
Nix
Raw Normal View History

2024-04-27 10:51:53 +02:00
{ pkgs, config, lib, inputs, system, ... }:
let
cfg = config.grimmShared;
in
{
environment.systemPackages = with pkgs; [
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
(writeShellScriptBin "nixpkgs-review-head" "nixpkgs-review rev HEAD")
(writeShellScriptBin "fmt-all" ''find ./ -readable -writable -type f | grep "\.nix" | xargs nixpkgs-fmt'')
nixpkgs-review
nixpkgs-fmt
nixd
# inputs.nix-locate.packages."${system}".default
inputs.hammering.packages."${system}".default
nix-output-monitor
nix-search-cli
];
2024-04-27 14:20:48 +02:00
environment.sessionVariables = {
NIXPKGS_ALLOW_UNFREE = "1";
};
2024-04-27 10:51:53 +02:00
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [
vim-nix
];
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.package = pkgs.nixVersions.unstable;
nixpkgs.hostPlatform = system;
}