move apps into pkgs and rename hosts

This commit is contained in:
Noah Masur committed 2025-03-09 18:04:01 +00:00
1 parent 37d1d7724a
commit 75d4dbe868
44 files changed
+188 -592

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "rebuild" ''
echo ${pkgs.system}
SYSTEM=${if pkgs.stdenv.isDarwin then "darwin" else "linux"}
if [ "$SYSTEM" == "darwin" ]; then
sudo darwin-rebuild switch --flake ${builtins.toString ../../../../.}
else
doas nixos-rebuild switch --flake ${builtins.toString ../../../../.}
fi
''