added auto-upgrade option

This commit is contained in:
Serenity-F 2024-04-03 10:19:53 +10:00
parent 70baf3a9e7
commit 3acdda2835
3 changed files with 10 additions and 8 deletions

View file

@ -26,13 +26,13 @@
"flakes" "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. # Bootloader.
boot = { boot = {
# loader = { # loader = {

View file

@ -5,7 +5,7 @@
[ [
# Include the results of the hardware scan. # Include the results of the hardware scan.
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix" "${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
./disko-config.nix # /disko-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
../../configuration.nix ../../configuration.nix
]; ];

View file

@ -5,7 +5,9 @@
{ {
imports = 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" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];