-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
28 lines (25 loc) · 853 Bytes
/
flake.nix
File metadata and controls
28 lines (25 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "Agentic NixOS Assistant - My AI Perk Card";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = system: import nixpkgs { inherit system; };
in {
# This defines the "Package" output of the card
packages = forAllSystems (system: {
# FIXED: Added parentheses to ensure Nix calls the function first
default = (pkgsFor system).callPackage ./default.nix { };
});
# This allows you to run it directly with 'nix run'
apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/ask";
};
});
};
}