systemd.nix: Use environment.etc attribute syntax
This commit is contained in:
parent
4e38d152ed
commit
ebac0220d1
@ -530,36 +530,29 @@ in
|
|||||||
|
|
||||||
environment.systemPackages = [ systemd ];
|
environment.systemPackages = [ systemd ];
|
||||||
|
|
||||||
environment.etc =
|
environment.etc."systemd/system".source = units;
|
||||||
[ { source = units;
|
|
||||||
target = "systemd/system";
|
environment.etc."systemd/system.conf".text =
|
||||||
}
|
''
|
||||||
{ source = pkgs.writeText "systemd.conf"
|
[Manager]
|
||||||
''
|
'';
|
||||||
[Manager]
|
|
||||||
'';
|
environment.etc."systemd/journald.conf".text =
|
||||||
target = "systemd/system.conf";
|
''
|
||||||
}
|
[Journal]
|
||||||
{ source = pkgs.writeText "journald.conf"
|
RateLimitInterval=${config.services.journald.rateLimitInterval}
|
||||||
''
|
RateLimitBurst=${toString config.services.journald.rateLimitBurst}
|
||||||
[Journal]
|
${optionalString (config.services.journald.console != "") ''
|
||||||
RateLimitInterval=${config.services.journald.rateLimitInterval}
|
ForwardToConsole=yes
|
||||||
RateLimitBurst=${toString config.services.journald.rateLimitBurst}
|
TTYPath=${config.services.journald.console}
|
||||||
${optionalString (config.services.journald.console != "") ''
|
''}
|
||||||
ForwardToConsole=yes
|
'';
|
||||||
TTYPath=${config.services.journald.console}
|
|
||||||
''}
|
environment.etc."systemd/logind.conf".text =
|
||||||
'';
|
''
|
||||||
target = "systemd/journald.conf";
|
[Login]
|
||||||
}
|
${config.services.logind.extraConfig}
|
||||||
{ source = pkgs.writeText "logind.conf"
|
'';
|
||||||
''
|
|
||||||
[Login]
|
|
||||||
${config.services.logind.extraConfig}
|
|
||||||
'';
|
|
||||||
target = "systemd/logind.conf";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
system.activationScripts.systemd =
|
system.activationScripts.systemd =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user