Add autoupgrade

This commit is contained in:
Jimbo 2024-12-01 20:10:31 -05:00
parent 0042da23be
commit 18bb13226c
4 changed files with 21 additions and 1 deletions

View file

@ -29,6 +29,7 @@
}; };
outputs = { outputs = {
self,
nixpkgs, nixpkgs,
unstable, unstable,
lanzaboote, lanzaboote,
@ -46,6 +47,7 @@
inherit modules; inherit modules;
specialArgs = { specialArgs = {
inherit inherit
self
unstable unstable
lanzaboote lanzaboote
disko disko
@ -77,7 +79,7 @@
axolotl = mkNix [ ./hosts/axolotl ]; # PineBook Pro axolotl = mkNix [ ./hosts/axolotl ]; # PineBook Pro
lacros = mkNix [ ./hosts/lacros ]; # Dell Chromebook lacros = mkNix [ ./hosts/lacros ]; # Dell Chromebook
redmond = mkNix [ ./hosts/redmond ]; # Lenovo Dual-Boot Laptop redmond = mkNix [ ./hosts/redmond ]; # Lenovo Dual-Boot Laptop
extern = mkNix [ ./hosts/extern ]; # ISO Image extern = mkNix [ ./hosts/extern ]; # External Drive/USB
kitty = mkNix [ ./hosts/kitty ]; # Dell Optiplex 7010 kitty = mkNix [ ./hosts/kitty ]; # Dell Optiplex 7010
xenia = mkNix [ ./hosts/xenia ]; # Acer Veriton X2611G xenia = mkNix [ ./hosts/xenia ]; # Acer Veriton X2611G

View file

@ -25,6 +25,7 @@
".local/share/fractal" ".local/share/fractal"
".local/share/PrismLauncher" ".local/share/PrismLauncher"
".local/share/Steam" ".local/share/Steam"
".local/share/TelegramDesktop"
{ directory = ".ssh"; mode = "0700"; } { directory = ".ssh"; mode = "0700"; }
{ directory = ".gnupg"; mode = "0700"; } { directory = ".gnupg"; mode = "0700"; }

View file

@ -0,0 +1,13 @@
{ self, ... }:
{
system.autoUpgrade = {
enable = true;
flake = self.outPath;
flags = [
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
dates = "daily";
};
}

View file

@ -1,5 +1,9 @@
{ ... }: { ... }:
{ {
imports = [
./autoupgrade
];
nix = { nix = {
settings = { settings = {
experimental-features = [ experimental-features = [