add mcontrolcenter
This commit is contained in:
parent
22a34c114b
commit
187222b1f2
4 changed files with 54 additions and 0 deletions
18
systems/msi/mcontrolcenter.nix
Normal file
18
systems/msi/mcontrolcenter.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue