fix: don't add local cache to builder
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-29 21:18:50 -04:00
parent 7893d37df5
commit 6be9d173b6
8 changed files with 51 additions and 28 deletions

View file

@ -26,7 +26,6 @@
boot.tmp.useTmpfs = true;
nix = {
# Keep a version that works with nix-eval-jobs
package = pkgs.nixVersions.git.overrideAttrs (oldAttrs: {
pname = "nix";
version = "2.21.3";
@ -107,7 +106,10 @@
home.packages =
[
nix-melt.packages.${pkgs.system}.default
nurl.packages.${pkgs.system}.default
(nurl.packages.${pkgs.system}.default.override {
nix = config.nix.package;
})
]
++ (with config.nur.repos.rycee; [
mozilla-addons-to-nix

View file

@ -2,9 +2,10 @@
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv = {
enable = true;
package = pkgs.nix-direnv-flakes;
package = pkgs.nix-direnv;
};
};
}

View file

@ -27,5 +27,14 @@
usbutils
wget
zip
]);
])
++ [
# This could help as well: nix derivation show -r /run/current-system
(pkgs.writeShellApplication {
name = "listDerivs";
text = ''
nix-store --query --requisites /run/current-system | cut -d- -f2- | sort -u
'';
})
];
}

View file

@ -1,8 +1,11 @@
{
config,
lib,
pkgs,
...
}: {
}: let
inherit (lib) optionals;
in {
environment.systemPackages = [
(pkgs.writeShellApplication {
name = "rebuild-no-cache";
@ -15,22 +18,25 @@
nix = {
settings = {
substituters = [
"https://hyprland.cachix.org"
"https://nix-gaming.cachix.org"
# Nixpkgs-Wayland
"https://cache.nixos.org"
"https://nixpkgs-wayland.cachix.org"
"https://nix-community.cachix.org"
# Nix-community
"https://nix-community.cachix.org"
# Nh
"https://viperml.cachix.org"
# Caddy
"https://caddycf.cachix.org"
# Personal config cache
"https://cache.nelim.org"
];
substituters =
[
"https://hyprland.cachix.org"
"https://nix-gaming.cachix.org"
# Nixpkgs-Wayland
"https://cache.nixos.org"
"https://nixpkgs-wayland.cachix.org"
"https://nix-community.cachix.org"
# Nix-community
"https://nix-community.cachix.org"
# Nh
"https://viperml.cachix.org"
# Caddy
"https://caddycf.cachix.org"
]
++ optionals (!config.services.nix-serve.enable) [
# Personal config cache
"https://cache.nelim.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="

View file

@ -8,12 +8,16 @@
inherit (config.vars) mainUser;
inherit (config.sops) secrets;
nixPkg = {
nix = config.nix.package;
};
nix-eval-jobsPkg =
nix-eval-jobs.packages.${pkgs.system}.default.override {
nix = config.nix.package;
}
// {
nix = config.nix.package;
};
nix-fast-buildPkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
nix-eval-jobs =
nix-eval-jobs.packages.${pkgs.system}.default.override nixPkg // nixPkg;
nix-eval-jobs = nix-eval-jobsPkg;
};
in {
services.nix-serve = {

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -9,8 +9,8 @@ let
# Inputs
nixTools = {
nurl = mkInput {
owner = "nix-community";
nurl = mkDep {
owner = "matt1432";
repo = "nurl";
};
@ -58,6 +58,7 @@ let
repo = "stylelint-lsp";
};
# uses nixVersions.nix_2_19
nixd = mkDep {
owner = "nix-community";
repo = "nixd";