# Claude Code, the Claude desktop app, Obsidian, and the git / GitHub / GitLab # command-line tools. Written by nixdaemon-bootstrap.sh; edit freely. { ... }: { flake.nixosModules.workstation = { lib, pkgs, inputs, ... }: let # Anthropic's own Linux builds, repackaged for Nix by numtide and refreshed # daily. (NixOS isn't a distro Anthropic supports directly: its desktop app # ships as a .deb for Debian/Ubuntu.) claude = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}; in { nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Unfree packages (Obsidian) are already allowed elsewhere in this config. environment.systemPackages = [ claude.claude-code # terminal: `claude` claude.claude-desktop # desktop app: "Claude" in your launcher, or `claude-desktop` pkgs.obsidian pkgs.git pkgs.gh # GitHub CLI pkgs.glab # GitLab CLI pkgs.qemu_kvm # only for the desktop app's Cowork tab ]; # The desktop app keeps its sign-in in the system keyring; without one it # asks you to log in on every launch. services.gnome.gnome-keyring.enable = lib.mkDefault true; # The desktop app's Cowork tab runs its tasks in a local VM, which needs KVM. # If you don't use Cowork, delete these two lines and qemu_kvm above. boot.kernelModules = [ "vhost_vsock" ]; users.groups.kvm.members = [ "daemonsec" ]; # Run Electron apps (Claude, Obsidian) natively on Wayland, e.g. on Hyprland. environment.sessionVariables.NIXOS_OZONE_WL = lib.mkDefault "1"; # Optional: numtide's binary cache, so the Claude packages download instead # of building a couple of small helper tools locally on each update. # nix.settings.extra-substituters = [ "https://cache.numtide.com" ]; # nix.settings.extra-trusted-public-keys = [ # "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" # ]; } ; }