From 1c3e554e7f77a6d2a2374ef4fe32bf0d287dfd40 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 16 Nov 2024 12:53:33 +0100 Subject: home+muhammed Add disable-sleep to shell-utils --- home/shell-utils/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'home/shell-utils/default.nix') diff --git a/home/shell-utils/default.nix b/home/shell-utils/default.nix index bd07597..0207d40 100644 --- a/home/shell-utils/default.nix +++ b/home/shell-utils/default.nix @@ -1,5 +1,8 @@ # This module adds some common shell utilities to my home managed environment. -{pkgs, ...}: { +{pkgs, ...}: let + isLinux = pkgs.stdenv.isLinux; + isDarwin = pkgs.stdenv.isDarwin; +in { home.packages = with pkgs; [ human-sleep @@ -7,11 +10,12 @@ jc jq ] - ++ lib.optionals (pkgs.stdenv.isLinux) [ + ++ lib.optionals isLinux [ file # File is not included in NixOS, but *is* included in Darwin. ] - ++ lib.optionals (pkgs.stdenv.isDarwin) [ + ++ lib.optionals isDarwin [ pbv trash + disable-sleep ]; } -- cgit v1.2.3