feat: auto-updates
This commit is contained in:
1 parent
f8f14fa536
commit
be4e3096da
1 file changed
+27
@@ -7,6 +7,11 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
repoDomain = "thearcticcircle.ddns.net";
|
||||||
|
repoPath = "git/WinterEkisha/nix-config";
|
||||||
|
repoBranch = "main";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
@@ -39,6 +44,28 @@
|
|||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
||||||
|
system.autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
#flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME
|
||||||
|
flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}";
|
||||||
|
flags = [
|
||||||
|
"--refresh"
|
||||||
|
];
|
||||||
|
dates = "03:00";
|
||||||
|
randomizedDelaySec = "30min";
|
||||||
|
allowReboot = true;
|
||||||
|
rebootWindow = {
|
||||||
|
lower = "02:00";
|
||||||
|
upper = "05:00";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
|
|
||||||
# --- File Manager ---
|
# --- File Manager ---
|
||||||
xdg.mime.enable = true;
|
xdg.mime.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
|
|||||||
Reference in new issue
Block a user