feat: enable auto update system service

This commit is contained in:
Ananth Venkatesh 2025-05-06 01:43:40 -04:00
parent 099e29e327
commit 47f4aa7799
No known key found for this signature in database
GPG key ID: 4BB578E748CFE4FF
6 changed files with 119 additions and 34 deletions

View file

@ -6,7 +6,7 @@
pkgs,
...
}:
{
rec {
imports = [
./hardware-configuration.nix
];
@ -67,11 +67,23 @@
"/dev/disk/by-uuid/af320a0f-b388-43f5-b5a3-af2b47cfc716";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
stateVersion = "24.05"; # Did you read the comment?
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}