mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 14:09:51 -07:00
feat: enable auto update system service
This commit is contained in:
parent
099e29e327
commit
47f4aa7799
6 changed files with 119 additions and 34 deletions
|
@ -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. It‘s 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. It‘s 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue