Updated system

This commit is contained in:
Ori
2025-05-03 10:39:02 -05:00
parent 07305f2422
commit 3702ea7d4f
2 changed files with 107 additions and 101 deletions

View File

@@ -123,9 +123,15 @@
'')
];
systemd.services."phoenix-system-builder" = lib.mkIf config.systemSettings.systemBuilder.enable {
path = with pkgs; [
openssh git nix
];
script = ''
echo "navigating to /etc/nixos";
cd ${config.systemSettings.dotfilesDir};
echo "running git pull";
${pkgs.git}/bin/git pull;
echo "running nix flake update";
nix flake update;
${pkgs.git}/bin/git stage *;
${pkgs.git}/bin/git commit -m "Updated system";