Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0776c9a63e | ||
|
|
82109a74ff | ||
|
|
9ad228fd0e |
No files matched your search
@@ -6,52 +6,33 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.ai-tools.claude-code;
|
cfg = config.ai-tools.claude-code;
|
||||||
rtk-version = "0.18.1";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.claude-code.enable = true;
|
programs.claude-code.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(stdenv.mkDerivation {
|
(rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
name = "ccline";
|
pname = "ccometixline";
|
||||||
src = fetchurl {
|
version = "2.0.1";
|
||||||
url = "https://github.com/Haleclipse/CCometixLine/releases/download/v1.0.8/ccline-linux-x64.tar.gz";
|
src = fetchFromGitHub {
|
||||||
hash = "sha256-Joe3Dd6uSMGi66QT6xr2oY/Tz8rA5RuKa6ckBVJIzI0=";
|
owner = "Haleclipse";
|
||||||
|
repo = "CCometixLine";
|
||||||
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-tzEo+8M86C6EdN31rDVqt8+SCYqeEXRCVFsbtbW41XY=";
|
||||||
};
|
};
|
||||||
unpackPhase = "tar xzf $src";
|
cargoHash = "sha256-dTsuyklpaiYqp5Rq1Q7YUBrmQUH42ve2UY+MwUqF7Ek=";
|
||||||
installPhase = ''
|
checkFlags = [ "--skip=git::tests::detects_repositories_without_spawning_git" ];
|
||||||
mkdir -p $out/bin
|
postInstall = "mv $out/bin/ccometixline $out/bin/ccline";
|
||||||
cp ccline $out/bin/
|
|
||||||
chmod +x $out/bin/ccline
|
|
||||||
'';
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "CCometixLine Linux x64 CLI (Claude Code statusline)";
|
description = "CCometixLine (ccline) - Claude Code statusline tool";
|
||||||
homepage = "https://github.com/Haleclipse/CCometixLine";
|
homepage = "https://github.com/Haleclipse/CCometixLine";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
platforms = [ "x86_64-linux" ];
|
mainProgram = "ccline";
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
})
|
}))
|
||||||
(stdenv.mkDerivation {
|
rtk
|
||||||
name = "rtk-${rtk-version}";
|
|
||||||
version = rtk-version;
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/rtk-ai/rtk/releases/download/v${rtk-version}/rtk-x86_64-unknown-linux-gnu.tar.gz";
|
|
||||||
hash = "sha256-XoTia5K8b00OzcKYCufwx8ApkAS31DxUCpGSU0jFs2Q=";
|
|
||||||
};
|
|
||||||
unpackPhase = "tar xzf $src";
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp rtk $out/bin/
|
|
||||||
chmod +x $out/bin/rtk
|
|
||||||
'';
|
|
||||||
meta = {
|
|
||||||
description = "RTK - AI coding tool enhancer";
|
|
||||||
homepage = "https://www.rtk-ai.app";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
mcp-nixos
|
mcp-nixos
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ in
|
|||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ "/home" ];
|
default = [ "/home" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inhibitsSleep = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = config.host.role != "laptop";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -53,6 +58,7 @@ in
|
|||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
initialize = true;
|
initialize = true;
|
||||||
|
inherit (cfg) inhibitsSleep;
|
||||||
extraBackupArgs = [ "--one-file-system" ];
|
extraBackupArgs = [ "--one-file-system" ];
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-daily 7"
|
"--keep-daily 7"
|
||||||
@@ -62,5 +68,11 @@ in
|
|||||||
];
|
];
|
||||||
environmentFile = config.sops.templates."restic/b2-env-${host}".path;
|
environmentFile = config.sops.templates."restic/b2-env-${host}".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.restic-backups-home = {
|
||||||
|
unitConfig = {
|
||||||
|
RequiresMountsFor = cfg.paths;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user