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

539
flake.lock generated
View file

@ -1,227 +1,322 @@
{ {
"nodes": { "nodes": {
"flake-parts": { "blueprint": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs": [
"nixvim", "nix-ai-tools",
"nixpkgs" "nixpkgs"
] ],
}, "systems": "systems_2"
"locked": { },
"lastModified": 1754091436, "locked": {
"narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=", "lastModified": 1763308703,
"owner": "hercules-ci", "narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=",
"repo": "flake-parts", "owner": "numtide",
"rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd", "repo": "blueprint",
"type": "github" "rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f",
}, "type": "github"
"original": { },
"owner": "hercules-ci", "original": {
"repo": "flake-parts", "owner": "numtide",
"type": "github" "repo": "blueprint",
} "type": "github"
}, }
"flake-utils": { },
"inputs": { "flake-parts": {
"systems": "systems" "inputs": {
}, "nixpkgs-lib": [
"locked": { "nixvim",
"lastModified": 1731533236, "nixpkgs"
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", ]
"owner": "numtide", },
"repo": "flake-utils", "locked": {
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "lastModified": 1754091436,
"type": "github" "narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
}, "owner": "hercules-ci",
"original": { "repo": "flake-parts",
"owner": "numtide", "rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
"repo": "flake-utils", "type": "github"
"type": "github" },
} "original": {
}, "owner": "hercules-ci",
"flake-utils_2": { "repo": "flake-parts",
"inputs": { "type": "github"
"systems": "systems_2" }
}, },
"locked": { "flake-utils": {
"lastModified": 1731533236, "inputs": {
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "systems": "systems"
"owner": "numtide", },
"repo": "flake-utils", "locked": {
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "lastModified": 1731533236,
"type": "github" "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
}, "owner": "numtide",
"original": { "repo": "flake-utils",
"owner": "numtide", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"repo": "flake-utils", "type": "github"
"type": "github" },
} "original": {
}, "owner": "numtide",
"home-manager": { "repo": "flake-utils",
"inputs": { "type": "github"
"nixpkgs": [ }
"nixpkgs" },
] "flake-utils_2": {
}, "inputs": {
"locked": { "systems": "systems_3"
"lastModified": 1755442500, },
"narHash": "sha256-RHK4H6SWzkAtW/5WBHsyugaXJX25yr5y7FAZznxcBJs=", "locked": {
"owner": "nix-community", "lastModified": 1731533236,
"repo": "home-manager", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"rev": "d2ffdedfc39c591367b1ddf22b4ce107f029dcc3", "owner": "numtide",
"type": "github" "repo": "flake-utils",
}, "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"original": { "type": "github"
"owner": "nix-community", },
"repo": "home-manager", "original": {
"type": "github" "owner": "numtide",
} "repo": "flake-utils",
}, "type": "github"
"ixx": { }
"inputs": { },
"flake-utils": [ "home-manager": {
"nixvim", "inputs": {
"nuschtosSearch", "nixpkgs": [
"flake-utils" "nixpkgs"
], ]
"nixpkgs": [ },
"nixvim", "locked": {
"nuschtosSearch", "lastModified": 1755442500,
"nixpkgs" "narHash": "sha256-RHK4H6SWzkAtW/5WBHsyugaXJX25yr5y7FAZznxcBJs=",
] "owner": "nix-community",
}, "repo": "home-manager",
"locked": { "rev": "d2ffdedfc39c591367b1ddf22b4ce107f029dcc3",
"lastModified": 1748294338, "type": "github"
"narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=", },
"owner": "NuschtOS", "original": {
"repo": "ixx", "owner": "nix-community",
"rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85", "repo": "home-manager",
"type": "github" "type": "github"
}, }
"original": { },
"owner": "NuschtOS", "ixx": {
"ref": "v0.0.8", "inputs": {
"repo": "ixx", "flake-utils": [
"type": "github" "nixvim",
} "nuschtosSearch",
}, "flake-utils"
"nixpkgs": { ],
"locked": { "nixpkgs": [
"lastModified": 1755186698, "nixvim",
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=", "nuschtosSearch",
"owner": "NixOS", "nixpkgs"
"repo": "nixpkgs", ]
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c", },
"type": "github" "locked": {
}, "lastModified": 1748294338,
"original": { "narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
"owner": "NixOS", "owner": "NuschtOS",
"ref": "nixos-unstable", "repo": "ixx",
"repo": "nixpkgs", "rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
"type": "github" "type": "github"
} },
}, "original": {
"nixvim": { "owner": "NuschtOS",
"inputs": { "ref": "v0.0.8",
"flake-parts": "flake-parts", "repo": "ixx",
"nixpkgs": [ "type": "github"
"nixpkgs" }
], },
"nuschtosSearch": "nuschtosSearch", "nix-ai-tools": {
"systems": "systems_3" "inputs": {
}, "blueprint": "blueprint",
"locked": { "nixpkgs": "nixpkgs",
"lastModified": 1754262585, "treefmt-nix": "treefmt-nix"
"narHash": "sha256-Yz5dJ0VzGRzSRHdHldsWQbuFYmtP3NWNreCvPfCi9CI=", },
"owner": "nix-community", "locked": {
"repo": "nixvim", "lastModified": 1764903547,
"rev": "ab1b5962e1ca90b42de47e1172e0d24ca80e6256", "narHash": "sha256-ZAkVNnHrjp4lLtcpA0bLk7IoR4UuxeR/X3vD/G2nX8o=",
"type": "github" "owner": "numtide",
}, "repo": "nix-ai-tools",
"original": { "rev": "a5eb2131473bdaaa6081db3d17eb1b2a98b5e781",
"owner": "nix-community", "type": "github"
"ref": "nixos-25.05", },
"repo": "nixvim", "original": {
"type": "github" "owner": "numtide",
} "repo": "nix-ai-tools",
}, "type": "github"
"nuschtosSearch": { }
"inputs": { },
"flake-utils": "flake-utils_2", "nixpkgs": {
"ixx": "ixx", "locked": {
"nixpkgs": [ "lastModified": 1764856222,
"nixvim", "narHash": "sha256-yEJmtoFu4cJre1NuU4fb8q57Oux+NTbocnALtJ64aEI=",
"nixpkgs" "owner": "NixOS",
] "repo": "nixpkgs",
}, "rev": "ece6e266caf1effab32eceef0403b797b4330373",
"locked": { "type": "github"
"lastModified": 1753771532, },
"narHash": "sha256-Pmpke0JtLRzgdlwDC5a+aiLVZ11JPUO5Bcqkj0nHE/k=", "original": {
"owner": "NuschtOS", "owner": "NixOS",
"repo": "search", "ref": "nixpkgs-unstable",
"rev": "2a65adaf2c0c428efb0f4a2bc406aab466e96a06", "repo": "nixpkgs",
"type": "github" "type": "github"
}, }
"original": { },
"owner": "NuschtOS", "nixpkgs_2": {
"repo": "search", "locked": {
"type": "github" "lastModified": 1755186698,
} "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
}, "owner": "NixOS",
"root": { "repo": "nixpkgs",
"inputs": { "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
"flake-utils": "flake-utils", "type": "github"
"home-manager": "home-manager", },
"nixpkgs": "nixpkgs", "original": {
"nixvim": "nixvim" "owner": "NixOS",
} "ref": "nixos-unstable",
}, "repo": "nixpkgs",
"systems": { "type": "github"
"locked": { }
"lastModified": 1681028828, },
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "nixvim": {
"owner": "nix-systems", "inputs": {
"repo": "default", "flake-parts": "flake-parts",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "nixpkgs": [
"type": "github" "nixpkgs"
}, ],
"original": { "nuschtosSearch": "nuschtosSearch",
"owner": "nix-systems", "systems": "systems_4"
"repo": "default", },
"type": "github" "locked": {
} "lastModified": 1754262585,
}, "narHash": "sha256-Yz5dJ0VzGRzSRHdHldsWQbuFYmtP3NWNreCvPfCi9CI=",
"systems_2": { "owner": "nix-community",
"locked": { "repo": "nixvim",
"lastModified": 1681028828, "rev": "ab1b5962e1ca90b42de47e1172e0d24ca80e6256",
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "type": "github"
"owner": "nix-systems", },
"repo": "default", "original": {
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "owner": "nix-community",
"type": "github" "ref": "nixos-25.05",
}, "repo": "nixvim",
"original": { "type": "github"
"owner": "nix-systems", }
"repo": "default", },
"type": "github" "nuschtosSearch": {
} "inputs": {
}, "flake-utils": "flake-utils_2",
"systems_3": { "ixx": "ixx",
"locked": { "nixpkgs": [
"lastModified": 1681028828, "nixvim",
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "nixpkgs"
"owner": "nix-systems", ]
"repo": "default", },
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "locked": {
"type": "github" "lastModified": 1753771532,
}, "narHash": "sha256-Pmpke0JtLRzgdlwDC5a+aiLVZ11JPUO5Bcqkj0nHE/k=",
"original": { "owner": "NuschtOS",
"owner": "nix-systems", "repo": "search",
"repo": "default", "rev": "2a65adaf2c0c428efb0f4a2bc406aab466e96a06",
"type": "github" "type": "github"
} },
} "original": {
"owner": "NuschtOS",
"repo": "search",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"home-manager": "home-manager",
"nix-ai-tools": "nix-ai-tools",
"nixpkgs": "nixpkgs_2",
"nixvim": "nixvim"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"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", "root": "root",
"version": 7 "version": 7
} }

View file

@ -13,9 +13,27 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-ai-tools.url = "github:numtide/nix-ai-tools";
}; };
outputs = { self, nixpkgs, home-manager, flake-utils, nixvim } @ inputs: { 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)
];
};
};
nixosConfigurations.nxs = nixpkgs.lib.nixosSystem { nixosConfigurations.nxs = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [

View file

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