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 # git.nix
*.env *.env
.devenv .devenv
*.log

View File

@@ -68,7 +68,7 @@ nix-channel --update && nix-shell -p git
Then build the system from the flake Then build the system from the flake
```shell ```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 ### Secrets

View File

@@ -35,4 +35,11 @@
services.vscode-server.enable = true; services.vscode-server.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
services.tailscale.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 = { userSettings = {
gitUserName = "John Lancaster"; gitUserName = "John Lancaster";
gitUserEmail = "32917998+jsl12@users.noreply.github.com"; gitUserEmail = "32917998+jsl12@users.noreply.github.com";
adRepo = "https://github.com/jsl12/appdaemon";
adBranch = "hass";
userName = "appdaemon"; userName = "appdaemon";
adHome = "/home/appdaemon"; adHome = "/home/appdaemon";
}; };
@@ -45,7 +43,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
timeZone = "America/Chicago"; timeZone = "America/Chicago";
locale = "en_US.UTF-8"; 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}; pkgs = args.nixpkgs.legacyPackages.${systemSettings.system};
@@ -97,7 +95,7 @@
# https://devenv.sh/supported-languages/python/ # https://devenv.sh/supported-languages/python/
languages.python = { languages.python = {
enable = true; enable = true;
version = systemSettings.pythonVersion; # version = systemSettings.pythonVersion;
uv = { uv = {
enable = true; enable = true;
package = pkgs.uv; package = pkgs.uv;