Compare commits

..

2 Commits

Author SHA1 Message Date
77f848e319 reduce log file prevalance on netbox 2024-10-29 00:02:42 -05:00
15f2580cab add git-rebuild
when you're running on a server and pushing changes, it's nice to have
just one command that does that and nothing else. this is that command.
2024-10-28 23:53:44 -05:00
3 changed files with 15 additions and 0 deletions

View File

@ -59,6 +59,10 @@
stateVersion = "23.05"; # don't change this, lol stateVersion = "23.05"; # don't change this, lol
}; };
services.journald.extraConfig = ''
SystemMaxUse=2G
'';
system.userActivationScripts = { system.userActivationScripts = {
copyEssentialConfiguration = { copyEssentialConfiguration = {
# we don't want to bring in the entirety of home-manager for this, so just # we don't want to bring in the entirety of home-manager for this, so just

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp $src/rebuild $out/bin cp $src/rebuild $out/bin
cp $src/git-rebuild $out/bin
wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]} wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]}
''; '';

10
builds/rebuild/git-rebuild Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# make sure we're in dot_testing
cd ~/dot_testing
git pull
git stash
git rebase
rebuild