[Miso] Adds Miso cache to Vega

This commit is contained in:
2026-04-13 15:54:43 -07:00
parent e1b953dbcb
commit 0f1e73d015
4 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# WARN: `cachix use` will write to /etc/nixos/. You will need to update this file manually.
{ lib, ... }:
let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
in
{
inherit imports;
nix.settings.substituters = [ "https://cache.nixos.org/" ];
}

View File

@@ -0,0 +1,13 @@
{
nix = {
settings = {
substituters = [
"https://haskell-miso-cachix.cachix.org"
];
trusted-public-keys = [
"haskell-miso-cachix.cachix.org-1:m8hN1cvFMJtYib4tj+06xkKt5ABMSGfe8W7s40x1kQ0="
];
};
};
}

View File

@@ -64,6 +64,7 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
cachix
];
# Some programs need SUID wrappers, can be configured further or are

View File

@@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./cachix.nix
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix