1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

feat: get krebs stuff from stockholm flake

This commit is contained in:
2023-02-28 21:32:42 +01:00
parent d2fc37a70f
commit 9d61f006a6
18 changed files with 155 additions and 635 deletions

View File

@@ -5,7 +5,7 @@
}: let
suspend = pkgs.writers.writeDash "suspend" "${pkgs.systemd}/bin/systemctl suspend";
in {
services.power-action = {
krebs.power-action = {
enable = true;
plans.suspend = {
upperLimit = 7;
@@ -19,6 +19,6 @@ in {
};
security.sudo.extraConfig = ''
${config.services.power-action.user} ALL= (root) NOPASSWD: ${suspend}
${config.krebs.power-action.user} ALL= (root) NOPASSWD: ${suspend}
'';
}