this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tree-wide: replace power-profiles-daemon with tuned

authored by

Aly Raffauf and committed by
Aly Raffauf
6d74423d b3fd13a0

+9 -10
-8
hosts/README.md
··· 30 30 To add a new device to this configuration, follow these steps: 31 31 32 32 1. **Create Host Configuration**: 33 - 34 33 - Duplicate an existing host directory within `hosts/` and rename it to the new device's hostname. 35 34 - Modify the `default.nix` and other relevant Nix modules (e.g., `disko.nix`, `hardware.nix`, `home.nix`) to match the new device's specifications. 36 35 37 36 1. **Update `flake.nix`**: 38 - 39 37 - Add the new host to the `nixosConfigurations` section in `flake.nix`. 40 38 41 39 1. **(Optional) Configure Syncthing**: 42 - 43 40 - Generate Syncthing certificates and device ID: 44 41 ```bash 45 42 syncthing -generate="$HOSTNAME" ··· 48 45 - Encrypt the `cert.pem` and `key.pem` using `agenix` and set them appropriately in the host configuration. 49 46 50 47 1. **Install NixOS**: 51 - 52 48 - Install NixOS on the new device using this flake. Note that secrets will not be available on the first boot without a valid SSH private key. 53 49 54 50 1. **Authorize SSH Key**: 55 - 56 51 - On a separate machine, copy the new system's public SSH key (`/etc/ssh/ssh_host_ed25519_key.pub`) to the upstream secrets repository (`secrets/publicKeys/root_$HOSTNAME.pub`). 57 52 58 53 1. **Rekey Secrets**: 59 - 60 54 - Add the new public key to upstream `secrets.nix`. 61 55 - Rekey all secrets: 62 56 ```bash ··· 65 59 - Push the changes to the repository. 66 60 67 61 1. **Rebuild System**: 68 - 69 62 - On the new device, rebuild the system from the repository. Secrets will be automatically decrypted and available in `/run/agenix/` for NixOS and `$XDG_RUNTIME_DIR/agenix/` for users. 70 63 71 64 1. **(Optional) Configure User SSH Key**: 72 - 73 65 - Generate a new user SSH key and copy it to `secrets/publicKeys/$USER_$HOSTNAME.pub` to enable passwordless logins to other hosts. 74 66 75 67 ---
+5 -1
modules/hardware/asus/ally/RC72LA/default.nix
··· 101 101 ) 102 102 ]; 103 103 104 - power-profiles-daemon.enable = lib.mkDefault true; 104 + tuned = { 105 + enable = lib.mkDefault true; 106 + settings.dynamic_tuning = true; 107 + }; 108 + 105 109 upower.enable = lib.mkDefault true; 106 110 }; 107 111
+4 -1
modules/hardware/profiles/laptop/default.nix
··· 11 11 boot.kernel.sysctl."kernel.nmi_watchdog" = lib.mkDefault 0; 12 12 13 13 services = { 14 - power-profiles-daemon.enable = true; 14 + tuned = { 15 + enable = lib.mkDefault true; 16 + settings.dynamic_tuning = true; 17 + }; 15 18 16 19 # udev.extraRules = lib.mkIf config.services.power-profiles-daemon.enable '' 17 20 # ## Automatically switch power profiles based on AC power status.