feat: add self-hosted cache server

This commit is contained in:
danny 2025-09-25 19:58:19 +08:00
parent 05bc6a185f
commit 69705431bf
16 changed files with 313 additions and 95 deletions

View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "rRebuild" ''
TARGET=$1
BUILD=$2
shift
shift
nixos-rebuild switch --target-host "$TARGET" --build-host "$BUILD" --sudo --ask-sudo-password $@
''

View file

@ -1,11 +1,13 @@
{ osConfig, pkgs, ... }:
let
shellAlias = import ./shellAlias.nix { hostname = osConfig.networking.hostName; };
remoteRebuld = pkgs.callPackage ../scripts/remoteRebuild.nix { };
in
{
home.packages = with pkgs; [
# Shell
grc
remoteRebuld
];
programs = {