From 2787f2aedc462ac8dc7fcfde9d4b7ab79d1983f8 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 1 Oct 2023 22:22:25 +0200 Subject: Enable and fix still-awake service --- hosts/muhammed/configuration.nix | 2 ++ modules/darwin/still-awake/default.nix | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix index db54aff..6fac35f 100644 --- a/hosts/muhammed/configuration.nix +++ b/hosts/muhammed/configuration.nix @@ -33,6 +33,8 @@ %admin ALL=(ALL:ALL) NOPASSWD: ${builtins.concatStringsSep ", " commands} ''; + services.still-awake.enable = true; + # System-specific version info. home-manager.users.linus.home.stateVersion = "22.05"; system.stateVersion = 4; diff --git a/modules/darwin/still-awake/default.nix b/modules/darwin/still-awake/default.nix index 605c9ce..a02c0f6 100644 --- a/modules/darwin/still-awake/default.nix +++ b/modules/darwin/still-awake/default.nix @@ -15,8 +15,7 @@ in log-file = "/tmp/still-awake.log"; in { - enable = true; - config = { + serviceConfig = { ProgramArguments = [ "${pkgs.still-awake}/bin/still-awake" ]; ProcessType = "Interactive"; -- cgit v1.2.3