fixed some package errors and changed services

This commit is contained in:
voidarclabs
2026-01-26 09:27:31 +00:00
parent 136cd26a83
commit 9d89378118
3 changed files with 43 additions and 35 deletions

View File

@@ -3,7 +3,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Modern Nixpkgs
# Pinned Nixpkgs for compatibility (the commit that fixes the CURL_GNUTLS_3 issue)
pinned-nixpkgs = {
url = "github:NixOS/nixpkgs/5171d7b0a9fbaaf216c873622eb5115b6db97957";
@@ -11,31 +11,41 @@
};
};
outputs = { self, nixpkgs, pinned-nixpkgs, ... }:
let
# Supported systems
supportedSystems = [ "x86_64-linux" ];
outputs =
{
self,
nixpkgs,
pinned-nixpkgs,
...
}:
let
# Supported systems
supportedSystems = [ "x86_64-linux" ];
# The main package definition logic is imported as a function
chataigne-appimage-runner = import ./chataigne.nix;
# The main package definition logic is imported as a function
chataigne-appimage-runner = import ./chataigne.nix;
# Function to generate the package set for each system
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in
{
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
pinnedPkgs = import pinned-nixpkgs { inherit system; };
in
{
chataigne = chataigne-appimage-runner {
inherit pkgs pinnedPkgs;
};
# Also expose the default package for convenience
default = self.packages.${system}.chataigne;
}
);
};
# Function to generate the package set for each system
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pinnedPkgs = import pinned-nixpkgs { inherit system; };
in
{
chataigne = chataigne-appimage-runner {
inherit pkgs pinnedPkgs;
};
# Also expose the default package for convenience
default = self.packages.${system}.chataigne;
}
);
};
}