added crontab for auto updating

This commit is contained in:
John Lancaster
2024-12-29 16:57:36 -06:00
parent 2f219876ba
commit ae002a4370
4 changed files with 12 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
# git.nix
*.env
.devenv
*.log

View File

@@ -68,7 +68,7 @@ nix-channel --update && nix-shell -p git
Then build the system from the flake
```shell
nixos-rebuild switch --flake git+https://gitea.john-stream.com/john/ad-nix#ad-nix
nixos-rebuild switch --flake git+https://gitea.john-stream.com/john/ad-nix#ad-nix --impure
```
### Secrets

View File

@@ -35,4 +35,11 @@
services.vscode-server.enable = true;
services.openssh.enable = true;
services.tailscale.enable = true;
services.cron = {
enable = true;
systemCronJobs = [
"30 2 * * * /run/current-system/sw/bin/nfs > /etc/nixos/auto_update.log 2>&1"
];
};
}

View File

@@ -33,8 +33,6 @@
userSettings = {
gitUserName = "John Lancaster";
gitUserEmail = "32917998+jsl12@users.noreply.github.com";
adRepo = "https://github.com/jsl12/appdaemon";
adBranch = "hass";
userName = "appdaemon";
adHome = "/home/appdaemon";
};
@@ -45,7 +43,7 @@
system = "x86_64-linux";
timeZone = "America/Chicago";
locale = "en_US.UTF-8";
pythonVersion = "3.11.10"; # This is largely irrelevant because uv will handle it
# pythonVersion = "3.11.10"; # This is largely irrelevant because uv will handle it
};
pkgs = args.nixpkgs.legacyPackages.${systemSettings.system};
@@ -97,7 +95,7 @@
# https://devenv.sh/supported-languages/python/
languages.python = {
enable = true;
version = systemSettings.pythonVersion;
# version = systemSettings.pythonVersion;
uv = {
enable = true;
package = pkgs.uv;