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
|
@ -26,7 +26,7 @@
|
|||
'';
|
||||
tmp.useTmpfs = true;
|
||||
};
|
||||
systemd.package = pkgs.systemd.override { withHomed = false; };
|
||||
# systemd.package = pkgs.systemd.override { withHomed = false; withUkify = true; };
|
||||
|
||||
environment.persistence."/nix/persist/system" = {
|
||||
directories = [
|
||||
|
@ -60,23 +60,9 @@
|
|||
};
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=2h
|
||||
'';
|
||||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb;
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "user1";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.logind = {
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
lidSwitchDocked = "suspend-then-hibernate";
|
||||
lidSwitchDocked = "suspend";
|
||||
lidSwitchExternalPower = "suspend";
|
||||
extraConfig = ''
|
||||
HandlePowerKey = ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue