1
0
Fork 0

Tweak autoupgrade script

This commit is contained in:
Aires 2024-06-24 14:26:41 -04:00
parent 502407e3c1
commit 39ea6b199f
3 changed files with 31 additions and 16 deletions

View file

@ -12,16 +12,13 @@
aux.system = { aux.system = {
apps.tmux.enable = true; apps.tmux.enable = true;
boot = { bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
enable = true;
secureboot.enable = false;
};
packages = with pkgs; [ packages = with pkgs; [
libraspberrypi libraspberrypi
raspberrypifw raspberrypifw
raspberrypi-eeprom raspberrypi-eeprom
linuxKernel.kernels.linux_rpi4 linuxKernel.kernels.linux_rpi4
]; ];
services.ssh = { services.ssh = {
enable = true; enable = true;
ports = [ config.secrets.hosts.haven.ssh.port ]; ports = [ config.secrets.hosts.haven.ssh.port ];

View file

@ -5,6 +5,9 @@
... ...
}: }:
let let
# Do not change this value! This tracks when NixOS was installed on your system.
stateVersion = "24.05";
# Copy bluetooth device configs # Copy bluetooth device configs
shure-aonic-bluetooth = pkgs.writeText "info" ( shure-aonic-bluetooth = pkgs.writeText "info" (
builtins.readFile ./bluetooth/shure-aonic-bluetooth-params builtins.readFile ./bluetooth/shure-aonic-bluetooth-params
@ -26,7 +29,7 @@ in
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
system.stateVersion = "24.05"; system.stateVersion = stateVersion;
aux.system = { aux.system = {
apps = { apps = {
@ -42,9 +45,28 @@ in
languagetool.enable = true; languagetool.enable = true;
}; };
}; };
# Configure the bootloader.
bootloader = {
enable = true;
secureboot.enable = true;
tpm2.enable = true;
};
# Change the default text editor. Options are "emacs", "nano", or "vim".
editor = "nano";
# Enable GPU support.
gpu.amd.enable = true; gpu.amd.enable = true;
packages = with pkgs; [ boinc ];
packages = with pkgs; [
boinc # Boinc client
];
# Keep old generations for one week.
retentionPeriod = "7d"; retentionPeriod = "7d";
# Run daily automatic updates.
services.autoUpgrade = { services.autoUpgrade = {
enable = true; enable = true;
configDir = config.secrets.nixConfigFolder; configDir = config.secrets.nixConfigFolder;

View file

@ -26,11 +26,7 @@ in
{ {
options = { options = {
aux.system.services.autoUpgrade = { aux.system.services.autoUpgrade = {
enable = lib.mkOption { enable = lib.mkEnableOption (lib.mdDoc "Enables automatic system updates.");
default = true;
type = lib.types.bool;
description = "Enables automatic system updates.";
};
branches = lib.mkOption { branches = lib.mkOption {
type = lib.types.attrs; type = lib.types.attrs;
description = "Which local and remote branches to compare."; description = "Which local and remote branches to compare.";