File tree Expand file tree Collapse file tree 3 files changed +12
-29
lines changed
modules/common/services/performance Expand file tree Collapse file tree 3 files changed +12
-29
lines changed Original file line number Diff line number Diff line change 1616 } ) ;
1717
1818 inherit ( lib )
19- getExe
20- getExe'
2119 literalExpression
2220 mkIf
2321 mkOption
9694 config
9795 lib
9896 mkTunedScript
97+ tunedNoDesktop
9998 ;
10099 } )
101100 ( import ./guests.nix {
104103 config
105104 lib
106105 mkTunedScript
106+ tunedNoDesktop
107107 ;
108108 } )
109109 ] ;
145145 message = "Enabling the generic VM performance profile ('ghaf.services.performance.vm.enable') requires the 'host' and 'vm' profiles to be disabled." ;
146146 }
147147 ] ;
148- services . system76-scheduler = {
149- useStockConfig = false ;
150- settings = {
151- processScheduler = {
152- pipewireBoost . enable = false ;
153- # cosmic-comp still lacks integration with s76-scheduler
154- foregroundBoost . enable = false ;
155- useExecsnoop = true ;
156- } ;
157- cfsProfiles . enable = false ;
158- } ;
159- } ;
160- services . tuned . package = tunedNoDesktop ;
161- systemd . services = mkIf config . ghaf . profiles . debug . enable {
162- tuned = {
163- serviceConfig . ExecStart = [
164- ""
165- "${ getExe pkgs . tuned } -P -l -D"
166- ] ;
167- } ;
168- tuned-ppd = {
169- serviceConfig . ExecStart = [
170- ""
171- "${ getExe' pkgs . tuned "tuned-ppd" } -l -D"
172- ] ;
173- } ;
174- } ;
175148 } ;
176149}
Original file line number Diff line number Diff line change 55 config ,
66 lib ,
77 mkTunedScript ,
8+ tunedNoDesktop ,
89 ...
910} :
1011let
222223 ( mkIf cfg . gui . enable {
223224 services . system76-scheduler = {
224225 inherit ( cfg . gui . scheduler ) enable ;
226+ useStockConfig = false ;
225227 settings = {
226228 processScheduler = {
227229 refreshInterval = 30 ;
230+ pipewireBoost . enable = false ;
231+ # cosmic-comp still lacks integration with s76-scheduler
232+ foregroundBoost . enable = false ;
233+ useExecsnoop = true ;
228234 } ;
235+ cfsProfiles . enable = false ;
229236 } ;
230237 assignments = guiVmSchedulerAssignments ;
231238 } ;
232239 services . tuned = {
233240 inherit ( cfg . gui . tuned ) enable ;
241+ package = tunedNoDesktop ;
234242 ppdSupport = true ;
235243 settings . profile_dirs = "/etc/tuned/profiles,${
236244 concatMapStringsSep "," ( script : "${ script } " ) ( lib . attrValues guiProfileScripts )
Original file line number Diff line number Diff line change 55 config ,
66 lib ,
77 mkTunedScript ,
8+ tunedNoDesktop ,
89 ...
910} :
1011let
328329 } ;
329330 services . tuned = {
330331 inherit ( cfg . host . tuned ) enable ;
332+ package = tunedNoDesktop ;
331333
332334 settings . profile_dirs = "/etc/tuned/profiles,${
333335 concatMapStringsSep "," ( script : "${ script } " ) ( lib . attrValues hostProfileScripts )
You can’t perform that action at this time.
0 commit comments