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