67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
|
|
(writeShellScriptBin "nixpkgs-review-head" "nixpkgs-review rev HEAD")
|
|
|
|
nixpkgs-review
|
|
nixfmt-rfc-style
|
|
nixd
|
|
nixpkgs-hammering
|
|
nix-output-monitor
|
|
nix-search-cli
|
|
niv
|
|
nvd
|
|
vulnix
|
|
nix-init
|
|
inputs.nixpkgs-update.packages."${system}".default
|
|
];
|
|
|
|
environment.sessionVariables =
|
|
(lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; })
|
|
// {
|
|
NH_NOM = 1;
|
|
};
|
|
|
|
environment.shellAliases."rebuild" = "nixos-rebuild switch |& nom";
|
|
|
|
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;
|
|
};
|
|
|
|
programs.nh = {
|
|
enable = true;
|
|
# clean.enable = true;
|
|
clean.extraArgs = "--keep-since 14d --keep 16";
|
|
flake = "/etc/nixos";
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
# nix.package = pkgs.nixVersions.latest;
|
|
# nix.optimise.automatic = true;
|
|
}
|