nix cache
NixOS CI / Validate flake (push) Has been cancelled
Publish Nix cache / Build and publish uncached paths (push) Has been cancelled
NixOS CI / Build ${{ matrix.host }} (push) Has been cancelled
NixOS CI / Report main status (push) Has been cancelled

This commit is contained in:
2026-07-18 20:09:04 +09:00
parent 1e38d17dba
commit b2283ba328
9 changed files with 161 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
imports = [
./container.nix
./kde.nix
./nixcache-oci.nix
./quem-guest.nix
];
}
@@ -0,0 +1,17 @@
{
lib,
config,
...
}:
let
cfg = config.my.features.services.nixcacheOci;
in
{
options.my.features.services.nixcacheOci = {
enable = lib.mkEnableOption "Nix binary cache backed by public GHCR";
};
config = lib.mkIf cfg.enable {
my.system.nixcacheOci.enable = true;
};
}
+3
View File
@@ -1,3 +1,4 @@
{ inputs, ... }:
{
imports = [
./audio.nix
@@ -11,6 +12,7 @@
./locale.nix
./network
./nix.nix
./nixcache-oci.nix
./power.nix
./quem.nix
./secure-boot.nix
@@ -18,5 +20,6 @@
./user
./version.nix
./secret.nix
inputs.nixcache-oci.nixosModules.default
];
}
+27
View File
@@ -0,0 +1,27 @@
{
lib,
config,
...
}:
let
cfg = config.my.system.nixcacheOci;
publicKeyFile = ../../nixcache-public-key.txt;
publicKey =
if builtins.pathExists publicKeyFile then
lib.strings.trim (builtins.readFile publicKeyFile)
else
"";
in
{
options.my.system.nixcacheOci = {
enable = lib.mkEnableOption "Nix binary cache backed by the public GitHub Container Registry";
};
config = lib.mkIf cfg.enable {
services.nixcache-proxy = {
enable = true;
repo = "moons-14/dotfiles";
inherit publicKey;
};
};
}