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

@ -8,7 +8,7 @@
lib,
...
}:
{
rec {
imports = [ ./hardware-configuration.nix ];
networking.hostName = "adrastea";
@ -92,12 +92,24 @@
nixpkgs.config.allowUnfree = true;
# 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";
};
};
}