summaryrefslogtreecommitdiff
path: root/hosts/muhammed/configuration.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-11-16 12:53:33 +0100
committerLinnnus <[email protected]>2024-11-16 12:53:33 +0100
commit1c3e554e7f77a6d2a2374ef4fe32bf0d287dfd40 (patch)
treef8fc7738b29b8a5c9c7190e5dbf8222862399bc7 /hosts/muhammed/configuration.nix
parenta876fe32b44dac8d6db23e7cd6b6f96b75ba0bbb (diff)
home+muhammed Add disable-sleep to shell-utils
Diffstat (limited to 'hosts/muhammed/configuration.nix')
-rw-r--r--hosts/muhammed/configuration.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix
index b5d1aa8..dd9a737 100644
--- a/hosts/muhammed/configuration.nix
+++ b/hosts/muhammed/configuration.nix
@@ -1,7 +1,8 @@
# This file contains the configuration for my Macbook Pro.
{
flakeInputs,
- config,
+ pkgs,
+ lib,
...
}: {
imports = [
@@ -37,7 +38,7 @@
environment.etc."sudoers.d/10-unauthenticated-commands".text = let
commands = [
"/usr/bin/pmset"
- "${config.users.users.linus.home}/.local/bin/monner" # TODO: We should really package this.
+ (lib.getExe pkgs.disable-sleep)
];
in ''
%admin ALL=(ALL:ALL) NOPASSWD: ${builtins.concatStringsSep ", " commands}