Flake for my NixOS devices

Black Mesa As Binary Cache

bwc9876.dev dc23455c 021ec41a

verified
+18 -2
+11
roles/black-mesa-cache.nix
··· 1 + {}: { 2 + nix.settings = { 3 + substituters = [ 4 + "http://black-mesa:5000" 5 + "https://cache.nixos.org" 6 + ]; 7 + trusted-public-keys = [ 8 + "black-mesa:tAX++uOKyqP70gnwx5zHBMiZ0kee8WberjlPZmDuyxw=" 9 + ]; 10 + }; 11 + }
+1 -1
roles/imperm.nix
··· 5 5 }: let 6 6 persistRoot = "/nix/persist"; # Anything important we want backed up 7 7 secureRoot = "${persistRoot}/secure"; # Files and directories we want only root to access 8 - cacheRoot = "/nix/cache"; # Anything not as important that we can stand losing 8 + cacheRoot = "/nix/perist-cache"; # Anything not as important that we can stand losing 9 9 preWith = pre: paths: builtins.map (p: "${pre}/${p}") paths; 10 10 preShare = preWith ".local/share"; 11 11 preConf = preWith ".config";
+1 -1
systems/aperture.nix
··· 9 9 10 10 includeBaseMods = true; 11 11 12 - roles = ["latest-linux" "dev" "graphics" "games" "fun" "social" "secureboot" "wireless" "hypervisor"]; 12 + roles = ["latest-linux" "dev" "graphics" "games" "fun" "social" "secureboot" "wireless" "hypervisor" "black-mesa-cache"]; 13 13 extraModules = [ 14 14 inputs.nixos-hardware.nixosModules.framework-13th-gen-intel 15 15 (
+5
systems/black-mesa.nix
··· 53 53 modesetting.enable = true; 54 54 powerManagement.finegrained = false; 55 55 }; 56 + 57 + services.nix-serve = { 58 + enable = true; 59 + secretKeyFile = "/etc/nix-serve-key"; 60 + }; 56 61 }) 57 62 ]; 58 63 };