From b87a5ff696c7cb1f1db62b595b3cfd992bc1d1ed Mon Sep 17 00:00:00 2001 From: Nickolaj Jepsen Date: Mon, 28 Apr 2025 08:15:24 +0200 Subject: [PATCH] feat: add claude desktop --- flake.lock | 103 ++++++++++++++++++++++++++++++---------- flake.nix | 3 ++ modules/apps/claude.nix | 5 ++ modules/graphical.nix | 1 + 4 files changed, 88 insertions(+), 24 deletions(-) create mode 100644 modules/apps/claude.nix diff --git a/flake.lock b/flake.lock index 0956611..d5d64b5 100644 --- a/flake.lock +++ b/flake.lock @@ -91,6 +91,27 @@ "type": "github" } }, + "claude-desktop": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1745459952, + "narHash": "sha256-DqfNL28ny9M13s4Ae0PmdYdcu+CXQ0U9pM+3z/vGRDI=", + "owner": "k3d3", + "repo": "claude-desktop-linux-flake", + "rev": "467706b81668e2c59f118d9a469455d193489531", + "type": "github" + }, + "original": { + "owner": "k3d3", + "repo": "claude-desktop-linux-flake", + "type": "github" + } + }, "darwin": { "inputs": { "nixpkgs": [ @@ -141,11 +162,11 @@ ] }, "locked": { - "lastModified": 1745224732, - "narHash": "sha256-0OWgbEKhpMLpk3WQi3ugOwxWW4Y6JVpKiQ+o0nuNzus=", + "lastModified": 1745502102, + "narHash": "sha256-LqhRwzvIVPEjH0TaPgwzqpyhW6DtCrvz7FnUJDoUZh8=", "owner": "nix-community", "repo": "disko", - "rev": "1770bf1ae5da05564f86b969ef21c7228cc1a70b", + "rev": "ca27b88c88948d96feeee9ed814cbd34f53d0d70", "type": "github" }, "original": { @@ -327,6 +348,24 @@ "type": "github" } }, + "flake-utils_3": { + "inputs": { + "systems": "systems_4" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -377,11 +416,11 @@ ] }, "locked": { - "lastModified": 1744743431, - "narHash": "sha256-iyn/WBYDc7OtjSawbegINDe/gIkok888kQxk3aVnkgg=", + "lastModified": 1745557122, + "narHash": "sha256-eqSo9ugzsqhFgaDFYUZj943nurlX4L6f+AW0skJ4W+M=", "owner": "nix-community", "repo": "home-manager", - "rev": "c61bfe3ae692f42ce688b5865fac9e0de58e1387", + "rev": "dd26f75fb4ec1c731d4b1396eaf4439ce40a91c1", "type": "github" }, "original": { @@ -454,15 +493,15 @@ }, "nix-vscode-extensions": { "inputs": { - "flake-utils": "flake-utils", + "flake-utils": "flake-utils_2", "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1745286919, - "narHash": "sha256-cUcVU02ItAG0g5J6ukLfUaJXJKjnI7WqZu8jS9bq/2s=", + "lastModified": 1745546092, + "narHash": "sha256-Q4vPpbuoJOBXRdGW7ZRqlFq1x4FfWKmfyxSVRQZFNCM=", "owner": "nix-community", "repo": "nix-vscode-extensions", - "rev": "d9a8347b94253cafebb2c423466026694ec7c6ea", + "rev": "baeaec5a10fb8626bea64ebabdfaecdf64832bf3", "type": "github" }, "original": { @@ -567,11 +606,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1744932701, - "narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", + "lastModified": 1745391562, + "narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", + "rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", "type": "github" }, "original": { @@ -599,11 +638,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1744440957, - "narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=", + "lastModified": 1745487689, + "narHash": "sha256-FQoi3R0NjQeBAsEOo49b5tbDPcJSMWc3QhhaIi9eddw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d", + "rev": "5630cf13cceac06cefe9fc607e8dfa8fb342dde3", "type": "github" }, "original": { @@ -638,11 +677,11 @@ "treefmt-nix": "treefmt-nix_3" }, "locked": { - "lastModified": 1745288354, - "narHash": "sha256-7WQZ4mLlHxGWKMd7VvxL93CYcK2xwexnztj2FuXwkT8=", + "lastModified": 1745562604, + "narHash": "sha256-GE8J9kDnCT9rmRLNS1nQMMsViDM3NE4OdE1VcUZju4w=", "owner": "nix-community", "repo": "NUR", - "rev": "b9d85465fdbe6bddb0a9e9dce49c4bd0fbb92883", + "rev": "92404d658b85663c9ab10446b04cfde47bf5b8ae", "type": "github" }, "original": { @@ -654,20 +693,20 @@ "nvf": { "inputs": { "flake-parts": "flake-parts_5", - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "mnw": "mnw", "nil": "nil", "nixpkgs": [ "nixpkgs" ], - "systems": "systems_4" + "systems": "systems_5" }, "locked": { - "lastModified": 1745219503, - "narHash": "sha256-oE7nEQBfLTwXqs0U5/fpsMVsfccD6NL1TlBE1z9S+Nc=", + "lastModified": 1745533630, + "narHash": "sha256-6KSUHpEON1blNkSGsbJQgNpMEE0/UQqNyROaAY9C8yw=", "owner": "notashelf", "repo": "nvf", - "rev": "4045c458dc3e3eaabbb94518a857651cff341542", + "rev": "fc6c11631be694d0563464c6086f3b8b5a982e9f", "type": "github" }, "original": { @@ -703,6 +742,7 @@ "inputs": { "agenix": "agenix", "agenix-rekey": "agenix-rekey", + "claude-desktop": "claude-desktop", "disko": "disko", "fireproof-shell": "fireproof-shell", "flake-parts": "flake-parts_3", @@ -800,6 +840,21 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index 1e5b7d5..ed144c7 100644 --- a/flake.nix +++ b/flake.nix @@ -72,5 +72,8 @@ nvf.url = "github:notashelf/nvf"; nvf.inputs.nixpkgs.follows = "nixpkgs"; + + claude-desktop.url = "github:k3d3/claude-desktop-linux-flake"; + claude-desktop.inputs.nixpkgs.follows = "nixpkgs"; }; } diff --git a/modules/apps/claude.nix b/modules/apps/claude.nix new file mode 100644 index 0000000..2f3a4e3 --- /dev/null +++ b/modules/apps/claude.nix @@ -0,0 +1,5 @@ +{inputs, pkgs, ...}: { + environment.systemPackages = [ + inputs.claude-desktop.packages.${pkgs.system}.claude-desktop-with-fhs + ]; +} \ No newline at end of file diff --git a/modules/graphical.nix b/modules/graphical.nix index 023a8d4..a7ae127 100644 --- a/modules/graphical.nix +++ b/modules/graphical.nix @@ -14,5 +14,6 @@ ./apps/ghostty.nix ./apps/slack.nix ./apps/obsidian.nix + ./apps/claude.nix ]; }