add mcontrolcenter

This commit is contained in:
outfoxxed 2025-01-05 23:17:47 -08:00
parent 22a34c114b
commit 187222b1f2
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 54 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./hardware.nix
./mullvad.nix
./hyprland
./mcontrolcenter.nix
];
system.stateVersion = "23.11";

View file

@ -0,0 +1,18 @@
{ lib, pkgs, ... }: {
boot = {
kernelModules = [ "ec_sys" ];
extraModprobeConfig = ''
options ec_sys write_support=1
'';
};
environment.systemPackages = [ pkgs.mcontrolcenter ];
systemd.user.services.mcontrolcenter = {
description = "Launch mcontrolcenter";
requires = [ "tray.target" ];
after = [ "graphical-session-pre.target" "tray.target" ];
partOf = [ "graphical-session.target" ];
script = lib.getExe pkgs.mcontrolcenter;
};
}