mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
add shared systemd module
This commit is contained in:
parent
0ac9348fd2
commit
9e8e5053fd
4 changed files with 22 additions and 18 deletions
18
shared/systemd.nix
Normal file
18
shared/systemd.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
systemd = {
|
||||
|
||||
package = lib.mkDefault (pkgs.systemd.override { withHomed = false; });
|
||||
sleep.extraConfig = ''
|
||||
HibernateDelaySec=2h
|
||||
'';
|
||||
oomd = {
|
||||
enable = true;
|
||||
enableSystemSlice = true;
|
||||
enableRootSlice = true;
|
||||
enableUserServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue