mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Updated system
This commit is contained in:
parent
07305f2422
commit
3702ea7d4f
2 changed files with 107 additions and 101 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue