commit ff571fe68aa965d0e9722c2f7495c2eba1f0bb27 (tree)
parent 9dd0b4e0cf1efebf65102a4786ddd3e013e980aa
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Thu, 12 Feb 2026 10:26:53 +0200
claudec -> claudes
Diffstat:
4 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/flake.nix b/flake.nix
@@ -103,7 +103,7 @@
weather = super.callPackage ./pkgs/weather { };
nicer = super.callPackage ./pkgs/nicer.nix { };
tmuxbash = super.callPackage ./pkgs/tmuxbash.nix { };
- claudec = super.callPackage ./pkgs/claudec.nix { };
+ claudes = super.callPackage ./pkgs/claudes.nix { };
sentinelone = super.callPackage ./pkgs/sentinelone { };
chronoctl = super.callPackage ./pkgs/chronoctl.nix { };
mrescue-alpine = super.callPackage ./pkgs/mrescue-alpine.nix { };
diff --git a/modules/profiles/workstation/default.nix b/modules/profiles/workstation/default.nix
@@ -34,7 +34,7 @@ in
environment.systemPackages =
with pkgs;
[
- claudec
+ claudes
rr
uv
diff --git a/pkgs/claudec.nix b/pkgs/claudec.nix
@@ -1,40 +0,0 @@
-{
- writeShellApplication,
- pkgs,
- ...
-}:
-writeShellApplication {
- name = "claudec";
- text = ''
- ${pkgs.bubblewrap}/bin/bwrap --proc /proc \
- --dev /dev \
- --tmpfs /tmp \
- --tmpfs "$HOME" \
- --symlink "$(readlink -f /run/current-system)" /run/current-system \
- --symlink "$(readlink -f /etc/hosts)" /etc/hosts \
- --symlink "$(readlink -f /etc/static)" /etc/static \
- --symlink "$(readlink -f /etc/static/ssl)" /etc/ssl \
- --symlink "$(readlink -f /usr/bin/env)" /usr/bin/env \
- --symlink "$(readlink -f "$HOME/.nix-profile")" "$HOME/.nix-profile" \
- --ro-bind /nix/store /nix/store \
- --ro-bind /nix/var/nix/db /nix/var/nix/db \
- --ro-bind /run/wrappers /run/wrappers \
- --ro-bind /etc/resolv.conf /etc/resolv.conf \
- --ro-bind /etc/passwd /etc/passwd \
- --ro-bind /etc/group /etc/group \
- --ro-bind /etc/nix /etc/nix \
- --bind "$HOME/.claude.json" "$HOME/.claude.json" \
- --bind "$HOME/.cache/zig" "$HOME/.cache/zig" \
- --bind "$HOME/.claude" "$HOME/.claude" \
- --bind "$HOME/.config/nvim" "$HOME/.config/nvim" \
- --bind "$HOME/code" "$HOME/code" \
- --setenv HOME "$HOME" \
- --setenv USER motiejus \
- --die-with-parent \
- --chdir "$HOME/code" \
- --unshare-user \
- --uid 1001 \
- --gid 1001 -- \
- claude --dangerously-skip-permissions "$@"
- '';
-}
diff --git a/pkgs/claudes.nix b/pkgs/claudes.nix
@@ -0,0 +1,40 @@
+{
+ writeShellApplication,
+ pkgs,
+ ...
+}:
+writeShellApplication {
+ name = "claudes";
+ text = ''
+ ${pkgs.bubblewrap}/bin/bwrap --proc /proc \
+ --dev /dev \
+ --tmpfs /tmp \
+ --tmpfs "$HOME" \
+ --symlink "$(readlink -f /run/current-system)" /run/current-system \
+ --symlink "$(readlink -f /etc/hosts)" /etc/hosts \
+ --symlink "$(readlink -f /etc/static)" /etc/static \
+ --symlink "$(readlink -f /etc/static/ssl)" /etc/ssl \
+ --symlink "$(readlink -f /usr/bin/env)" /usr/bin/env \
+ --symlink "$(readlink -f "$HOME/.nix-profile")" "$HOME/.nix-profile" \
+ --ro-bind /nix/store /nix/store \
+ --ro-bind /nix/var/nix/db /nix/var/nix/db \
+ --ro-bind /run/wrappers /run/wrappers \
+ --ro-bind /etc/resolv.conf /etc/resolv.conf \
+ --ro-bind /etc/passwd /etc/passwd \
+ --ro-bind /etc/group /etc/group \
+ --ro-bind /etc/nix /etc/nix \
+ --bind "$HOME/.claude.json" "$HOME/.claude.json" \
+ --bind "$HOME/.cache/zig" "$HOME/.cache/zig" \
+ --bind "$HOME/.claude" "$HOME/.claude" \
+ --bind "$HOME/.config/nvim" "$HOME/.config/nvim" \
+ --bind "$HOME/code" "$HOME/code" \
+ --setenv HOME "$HOME" \
+ --setenv USER motiejus \
+ --die-with-parent \
+ --chdir "$HOME/code" \
+ --unshare-user \
+ --uid 1001 \
+ --gid 1001 -- \
+ claude --dangerously-skip-permissions "$@"
+ '';
+}