nixos/services.cpupower-gui: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 00:30:42 +02:00
parent 38b5d41259
commit f2e025b9a2
@@ -1,13 +1,10 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.cpupower-gui;
in {
options = {
services.cpupower-gui = {
enable = mkOption {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
@@ -20,7 +17,7 @@ in {
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.cpupower-gui ];
services.dbus.packages = [ pkgs.cpupower-gui ];
systemd.user = {