diff --git a/README.md b/README.md index 9d918b2..4bb3ee8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,13 @@ sudo nixos-rebuild switch --flake .#Shura ### Running updates -Periodically run `nh` to update the system. Use the `--update` flag to update `flake.lock` as part of the process. Note that for subsequent builds, you can omit the hostname: +All hosts are configured to run automatic daily updates (see `modules/base/system.nix`). You can disable this by adding `host.services.autoUpgrade = false;` to a hosts config. + +Automatic updates work by `git pull`ing the latest version of the Repo from Forgejo. This repo gets updated nightly by Haven, which updates the `flake.lock` file and pushes it back up to Forgejo. Only one host needs to do this, and you can enable this feature on a host using `host.services.autoUpgrade.pushUpdates = true;`. + +#### Manually updating + +Run `nh` to update the system. Use the `--update` flag to update `flake.lock` as part of the process. Note that for subsequent builds, you can omit the hostname: ```sh nh os boot --update @@ -132,6 +138,7 @@ This Nix config features: - Flakes - Home Manager +- Automatic daily updates - AMD, Intel, and Raspberry Pi (ARM64) hardware configurations - Workstation and server base system configurations - GNOME desktop environment with KDE integrations diff --git a/flake.lock b/flake.lock index 612d722..3dc5537 100644 --- a/flake.lock +++ b/flake.lock @@ -251,7 +251,7 @@ "locked": { "lastModified": 1717092160, "narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=", - "ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9", + "ref": "refs/heads/main", "rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9", "revCount": 42, "type": "git", diff --git a/modules/apps/gaming.nix b/modules/apps/gaming.nix index 2cbbf82..545dd4b 100644 --- a/modules/apps/gaming.nix +++ b/modules/apps/gaming.nix @@ -29,10 +29,7 @@ with lib; ]; # Enable Xbox controller driver (XPadNeo) - boot = { - extraModulePackages = with config.boot.kernelPackages; [ xpadneo ]; - kernelModules = [ "hid_xpadneo" ]; - }; + hardware.xpadneo.enable = true; # Add script to restart xpadneo in case of issues environment.systemPackages = [ reset-controllers-script ];