added crontab for auto updating
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
# git.nix
|
||||
*.env
|
||||
.devenv
|
||||
|
||||
*.log
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user