Skip to content
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
pacman -Syu --noconfirm
- name: Install build dependencies
run: |
pacman -S --noconfirm --needed base-devel rust pkgconf openssl git cmake restic jq
pacman -S --noconfirm --needed base-devel rust pkgconf openssl git cmake restic jq power-profiles-daemon
Comment thread
oskmasi marked this conversation as resolved.
Outdated
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
Expand Down
147 changes: 122 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ serde_yaml = "0.9.34"
nix = { version = "0.29", features = ["fs"] }
pathdiff = "0.2"
urlencoding = "2.1.3"
battery = "0.7.8"
strum = "0.27.2"
strum_macros = "0.27.2"

[dev-dependencies]
serial_test = "3"
10 changes: 10 additions & 0 deletions src/common/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,13 @@ pub static SMARTMONTOOLS: Dependency = Dependency {
],
tests: &[InstallTest::WhichSucceeds("smartctl")],
};

pub static POWERPROFILESDAEMON: Dependency = Dependency {
name: "power-profiles-daemon",
description: Some("Makes power profiles handling available over D-Bus"),
packages: &[
PackageDefinition::new("power-profiles-daemon", PackageManager::Apt),
PackageDefinition::new("power-profiles-daemon", PackageManager::Pacman),
],
tests: &[InstallTest::WhichSucceeds("powerprofilesctl")],
};
Loading
Loading