diff options
author | Linnnus <[email protected]> | 2024-11-16 12:53:33 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-11-16 12:53:33 +0100 |
commit | 1c3e554e7f77a6d2a2374ef4fe32bf0d287dfd40 (patch) | |
tree | f8fc7738b29b8a5c9c7190e5dbf8222862399bc7 /home/shell-utils | |
parent | a876fe32b44dac8d6db23e7cd6b6f96b75ba0bbb (diff) |
home+muhammed Add disable-sleep to shell-utils
Diffstat (limited to 'home/shell-utils')
-rw-r--r-- | home/shell-utils/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
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 ]; } |