feat: add self-hosted cache server
This commit is contained in:
parent
05bc6a185f
commit
69705431bf
16 changed files with 313 additions and 95 deletions
10
home/scripts/remoteRebuild.nix
Normal file
10
home/scripts/remoteRebuild.nix
Normal 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 $@
|
||||
''
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue