File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 99 cfg = config . services . xremap ;
1010 localLib = localFlake . localLib { inherit pkgs lib cfg ; } ;
1111 inherit ( localLib ) mkExecStart configFile ;
12- inherit ( lib ) mkIf optionalAttrs ;
12+ inherit ( lib ) mkIf mkMerge optionalAttrs ;
1313in
1414{
1515 options . services . xremap = localLib . commonOptions ;
2020 PartOf = [ "graphical-session.target" ] ;
2121 After = [ "graphical-session.target" ] ;
2222 } ;
23- Service = {
24- Type = "simple" ;
25- ExecStart = mkExecStart configFile ;
26- Restart = "always" ;
27- } // optionalAttrs cfg . debug { Environment = [ "RUST_LOG=debug" ] ; } ;
23+ Service = mkMerge [
24+ {
25+ Type = "simple" ;
26+ ExecStart = mkExecStart configFile ;
27+ Restart = "always" ;
28+ }
29+ ( optionalAttrs cfg . debug { Environment = [ "RUST_LOG=debug" ] ; } )
30+ ] ;
2831 Install . WantedBy = [ "graphical-session.target" ] ;
2932 } ;
3033 } ;
You can’t perform that action at this time.
0 commit comments