mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Services] Re-enable ananicy-cpp with better config generation
Also add fwupd
This commit is contained in:
parent
3a4b7e898b
commit
15db62413a
1 changed files with 9 additions and 4 deletions
13
services.nix
13
services.nix
|
|
@ -31,15 +31,20 @@ in {
|
||||||
|
|
||||||
services.printing.enable = desktopCfg.enable;
|
services.printing.enable = desktopCfg.enable;
|
||||||
|
|
||||||
services.ananicy.enable = false;
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
|
services.ananicy.enable = true;
|
||||||
services.ananicy.package = pkgs.ananicy-cpp;
|
services.ananicy.package = pkgs.ananicy-cpp;
|
||||||
services.ananicy.settings = {
|
services.ananicy.settings = {
|
||||||
loglevel = "info";
|
loglevel = "info";
|
||||||
cgroup_realtime_workaround = false;
|
cgroup_realtime_workaround = false;
|
||||||
};
|
};
|
||||||
services.ananicy.extraRules = ''
|
services.ananicy.extraRules = concatStringsSep "\n" ( forEach [
|
||||||
{"name": "cp", "type": "BG_CPUIO"}
|
{
|
||||||
'';
|
name = "cp";
|
||||||
|
type = "BG_CPUIO";
|
||||||
|
}
|
||||||
|
] (x: builtins.toJSON x));
|
||||||
|
|
||||||
services.avahi.enable = true; # .lan/.local resolution
|
services.avahi.enable = true; # .lan/.local resolution
|
||||||
services.avahi.nssmdns = true; # .lan/.local resolution
|
services.avahi.nssmdns = true; # .lan/.local resolution
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue