From 3acdda283530497438ed930e116291870a277c98 Mon Sep 17 00:00:00 2001 From: Serenity-F Date: Wed, 3 Apr 2024 10:19:53 +1000 Subject: [PATCH] added auto-upgrade option --- configuration.nix | 12 ++++++------ hosts/proserpina/configuration.nix | 2 +- hosts/proserpina/hardware-configuration.nix | 4 +++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3feba2a..4384da3 100755 --- a/configuration.nix +++ b/configuration.nix @@ -26,13 +26,13 @@ "flakes" ]; }; - gc = { - # automatic = true; - # dates = "weekly"; - # options = "--delete-older-than 5d"; - # persistent = true; - }; }; + + system.autoUpgrade = { + enable = true; + channel = "https://nixos.org/channels/nixos-23.11"; + }; + # Bootloader. boot = { # loader = { diff --git a/hosts/proserpina/configuration.nix b/hosts/proserpina/configuration.nix index d86b5d1..3ffaf17 100644 --- a/hosts/proserpina/configuration.nix +++ b/hosts/proserpina/configuration.nix @@ -5,7 +5,7 @@ [ # Include the results of the hardware scan. "${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix" - ./disko-config.nix + # /disko-config.nix ./hardware-configuration.nix ../../configuration.nix ]; diff --git a/hosts/proserpina/hardware-configuration.nix b/hosts/proserpina/hardware-configuration.nix index 47a61f8..947d0b6 100644 --- a/hosts/proserpina/hardware-configuration.nix +++ b/hosts/proserpina/hardware-configuration.nix @@ -5,7 +5,9 @@ { imports = - [ (modulesPath + "/installer/scan/not-detected.nix") + [ + (modulesPath + "/installer/scan/not-detected.nix") + ./disko-config.sh ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];