summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-11-16 12:36:47 +0100
committerLinnnus <[email protected]>2024-11-16 12:36:47 +0100
commit1f7610974ed8bcd98a4c646039aad538d19b54a6 (patch)
tree634e939c87353532c5abea1d382edba95b9b6f6d
parentef73ba2355fb5e48a1921c656f1b8e2106700b61 (diff)
home: Add shell-utils module
I also moved pbv and trash from hosts/muhammed/home/dev-utils into the new module, since they aren't really development related; I would still want them on a Darwin system that *wasn't* being used for development.
-rw-r--r--home/default.nix1
-rw-r--r--home/shell-utils/default.nix17
-rw-r--r--hosts/muhammed/home/dev-utils/default.nix71
3 files changed, 50 insertions, 39 deletions
diff --git a/home/default.nix b/home/default.nix
index 841f563..fde81b7 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -21,6 +21,7 @@
./zsh
./git
./networking-utils
+ ./shell-utils
]
++ builtins.attrValues flakeOutputs.homeModules;
diff --git a/home/shell-utils/default.nix b/home/shell-utils/default.nix
new file mode 100644
index 0000000..bd07597
--- /dev/null
+++ b/home/shell-utils/default.nix
@@ -0,0 +1,17 @@
+# This module adds some common shell utilities to my home managed environment.
+{pkgs, ...}: {
+ home.packages = with pkgs;
+ [
+ human-sleep
+ ripgrep
+ jc
+ jq
+ ]
+ ++ lib.optionals (pkgs.stdenv.isLinux) [
+ file # File is not included in NixOS, but *is* included in Darwin.
+ ]
+ ++ lib.optionals (pkgs.stdenv.isDarwin) [
+ pbv
+ trash
+ ];
+}
diff --git a/hosts/muhammed/home/dev-utils/default.nix b/hosts/muhammed/home/dev-utils/default.nix
index 26bb40d..ac63f3d 100644
--- a/hosts/muhammed/home/dev-utils/default.nix
+++ b/hosts/muhammed/home/dev-utils/default.nix
@@ -4,49 +4,42 @@
lib,
...
}: {
- home.packages = with pkgs;
- [
- # smol utils
- nodePackages_latest.nodemon
- rlwrap
- jc
- jq
+ home.packages = with pkgs; [
+ # smol utils
+ nodePackages_latest.nodemon
+ rlwrap
- # heavy hitters
- imagemagick
- ffmpeg_6-full
+ # heavy hitters
+ imagemagick
+ ffmpeg_6-full
- # interpreaters
- cling
- unstable.deno
- (python311Full.withPackages (ps:
- with ps; [
- virtualenv
- tkinter
- ]))
- tcl-8_6
- crystal
- nim
- guile
- vemf
- unstable.gleam
- cscript
- erlang_nox # Required by Gleam
- rebar3 # Required by Gleam
- unstable.nodejs_latest
+ # interpreaters
+ cling
+ unstable.deno
+ (python311Full.withPackages (ps:
+ with ps; [
+ virtualenv
+ tkinter
+ ]))
+ tcl-8_6
+ crystal
+ nim
+ guile
+ vemf
+ unstable.gleam
+ cscript
+ erlang_nox # Required by Gleam
+ rebar3 # Required by Gleam
+ unstable.nodejs_latest
- # Rust ecosystem
- rustc
- cargo
+ # Rust ecosystem
+ rustc
+ cargo
- # Clojure ecosystem
- clojure
- leiningen
- ]
- ++ lib.optionals pkgs.stdenv.isDarwin [
- pbv
- trash
- ];
+ # Clojure ecosystem
+ clojure
+ leiningen
+ ];
# Add system manual pages to the search path on Darwin.
home.sessionVariables.MANPATH = lib.optionalString pkgs.stdenv.isDarwin "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:$MANPATH";