49 lines
1012 B
Nix
49 lines
1012 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.grimmShared;
|
|
in
|
|
{
|
|
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
|
|
nixpkgs-fmt
|
|
nixfmt-rfc-style
|
|
nixd
|
|
nixpkgs-hammering
|
|
nix-output-monitor
|
|
nix-search-cli
|
|
niv
|
|
vulnix
|
|
];
|
|
|
|
environment.sessionVariables = lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; };
|
|
|
|
grimmShared.tooling.nvim.extraLuaRC = lib.singleton ''
|
|
require'lspconfig'.nixd.setup{}
|
|
'';
|
|
|
|
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;
|
|
}
|