summaryrefslogtreecommitdiff
path: root/home/shell-utils
diff options
context:
space:
mode:
Diffstat (limited to 'home/shell-utils')
-rw-r--r--home/shell-utils/default.nix10
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
];
}