Update readme
This commit is contained in:
parent
5e1c99bc39
commit
8fa2a20e8c
|
@ -33,7 +33,13 @@ sudo nixos-rebuild switch --flake .#Shura
|
||||||
|
|
||||||
### Running updates
|
### 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
|
```sh
|
||||||
nh os boot --update
|
nh os boot --update
|
||||||
|
@ -132,6 +138,7 @@ This Nix config features:
|
||||||
|
|
||||||
- Flakes
|
- Flakes
|
||||||
- Home Manager
|
- Home Manager
|
||||||
|
- Automatic daily updates
|
||||||
- AMD, Intel, and Raspberry Pi (ARM64) hardware configurations
|
- AMD, Intel, and Raspberry Pi (ARM64) hardware configurations
|
||||||
- Workstation and server base system configurations
|
- Workstation and server base system configurations
|
||||||
- GNOME desktop environment with KDE integrations
|
- GNOME desktop environment with KDE integrations
|
||||||
|
|
|
@ -251,7 +251,7 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717092160,
|
"lastModified": 1717092160,
|
||||||
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
|
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
|
||||||
"ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
"ref": "refs/heads/main",
|
||||||
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
||||||
"revCount": 42,
|
"revCount": 42,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -29,10 +29,7 @@ with lib;
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Xbox controller driver (XPadNeo)
|
# Enable Xbox controller driver (XPadNeo)
|
||||||
boot = {
|
hardware.xpadneo.enable = true;
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ xpadneo ];
|
|
||||||
kernelModules = [ "hid_xpadneo" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add script to restart xpadneo in case of issues
|
# Add script to restart xpadneo in case of issues
|
||||||
environment.systemPackages = [ reset-controllers-script ];
|
environment.systemPackages = [ reset-controllers-script ];
|
||||||
|
|
Loading…
Reference in a new issue