Copilot
Some checks are pending
CI / formatting (push) Waiting to run
CI / nix_flake_check (push) Waiting to run

This commit is contained in:
Narrator 2025-12-05 11:22:06 +01:00
parent 7e03a1cd64
commit ec0ccb3e25
3 changed files with 342 additions and 225 deletions

101
flake.lock generated
View file

@ -1,5 +1,27 @@
{
"nodes": {
"blueprint": {
"inputs": {
"nixpkgs": [
"nix-ai-tools",
"nixpkgs"
],
"systems": "systems_2"
},
"locked": {
"lastModified": 1763308703,
"narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=",
"owner": "numtide",
"repo": "blueprint",
"rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "blueprint",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -41,7 +63,7 @@
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
"systems": "systems_3"
},
"locked": {
"lastModified": 1731533236,
@ -105,7 +127,43 @@
"type": "github"
}
},
"nix-ai-tools": {
"inputs": {
"blueprint": "blueprint",
"nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1764903547,
"narHash": "sha256-ZAkVNnHrjp4lLtcpA0bLk7IoR4UuxeR/X3vD/G2nX8o=",
"owner": "numtide",
"repo": "nix-ai-tools",
"rev": "a5eb2131473bdaaa6081db3d17eb1b2a98b5e781",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-ai-tools",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1764856222,
"narHash": "sha256-yEJmtoFu4cJre1NuU4fb8q57Oux+NTbocnALtJ64aEI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ece6e266caf1effab32eceef0403b797b4330373",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1755186698,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
@ -128,7 +186,7 @@
"nixpkgs"
],
"nuschtosSearch": "nuschtosSearch",
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1754262585,
@ -172,7 +230,8 @@
"inputs": {
"flake-utils": "flake-utils",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nix-ai-tools": "nix-ai-tools",
"nixpkgs": "nixpkgs_2",
"nixvim": "nixvim"
}
},
@ -220,6 +279,42 @@
"repo": "default",
"type": "github"
}
},
"systems_4": {
"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": [
"nix-ai-tools",
"nixpkgs"
]
},
"locked": {
"lastModified": 1762938485,
"narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}
},
"root": "root",

View file

@ -13,9 +13,27 @@
inputs.nixpkgs.follows = "nixpkgs";
};
nix-ai-tools.url = "github:numtide/nix-ai-tools";
};
outputs = { self, nixpkgs, home-manager, flake-utils, nixvim, nix-ai-tools} @ inputs: {
homeManagerModules.copilot-cli = { lib, pkgs, config, inputs, ... }: {
options.programs.copilot-cli.enable = lib.mkEnableOption "";
config = lib.mkIf config.programs.copilot-cli.enable {
home.packages = [
(inputs.nix-ai-tools.packages.${pkgs.system}.copilot-cli or
(inputs.nixpkgs.legacyPackages.${pkgs.system}.fetchgit {
url = "github:numtide/nix-ai-tools";
ref = "main";
}).packages.${pkgs.system}.copilot-cli)
];
};
};
outputs = { self, nixpkgs, home-manager, flake-utils, nixvim } @ inputs: {
nixosConfigurations.nxs = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

View file

@ -1,8 +1,11 @@
{ config, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
inputs.self.homeManagerModules.copilot-cli
./i3.nix
./i3blocks.nix
./modules/neovim.nix
@ -22,12 +25,13 @@
};
};
};
programs.copilot-cli.enable = true;
home.packages = with pkgs; [
nix-prefetch-github
gemini-cli
gh-copilot
picard
chromaprint
xorg.xmodmap