Compare commits

...

10 commits

Author SHA1 Message Date
zimbatm
64a3352bbf drop old 24.xx channels
CI is breaking
2025-08-10 08:50:06 +02:00
Cobalt
9a5876396f
images/attic: init (#95)
Crate image with attic-client.
2025-08-10 08:47:03 +02:00
tomf
96c221d72c
images/pocket-id: init (#93) 2025-07-01 13:31:24 +02:00
tomf
02f2b05be8
maddy: init (#94) 2025-07-01 13:31:00 +02:00
erikarvstedt
98e0048215
nix.conf: enable parallel building (#90)
This is a sensible default given Docker images are often used for CI and build jobs.
2025-06-04 16:19:54 +02:00
Jonas Chevalier
074dd32ad1
Merge pull request #89 from so-lar-is/master
Add support for 25.05
2025-06-04 16:18:35 +02:00
me@so.lar.is
fe1eb377ed Add support for 25.05 2025-05-26 14:49:22 +02:00
Jonas Chevalier
8fdb8770b3
Merge pull request #86 from generative-engineering/24.11
🆕 Target 24.11 too, now that it's out and non-beta
2024-12-05 15:24:07 +01:00
Nick Boultbee
8fab1455c9 Fix iproute -> iproute2 2024-12-02 15:00:03 +00:00
Nick Boultbee
f2d5bd9472 Fix deprecated nix versions vars 2024-12-02 14:59:59 +00:00
11 changed files with 40 additions and 17 deletions

View file

@ -17,8 +17,7 @@ jobs:
matrix:
channel:
- nixos-unstable
- nixos-24.05
- nixos-24.11
- nixos-25.05
system:
- aarch64-linux
- x86_64-linux
@ -65,8 +64,7 @@ jobs:
matrix:
channel:
- nixos-unstable
- nixos-24.05
- nixos-24.11
- nixos-25.05
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

View file

@ -10,5 +10,4 @@ build:
- NIXPKGS_CHANNEL: nixos-unstable
IMAGE_TAG: latest
- NIXPKGS_CHANNEL:
- nixos-24.05
- nixos-24.11
- nixos-25.05

View file

@ -39,8 +39,7 @@ nixpkgs channel describes.
| Channel | Image Tag | Description |
| --- | --- | --- |
| nixos-24.05 | nixos-24.05 | only minor versions that include security updates |
| nixos-24.11 | nixos-24.11 | only minor versions that include security updates |
| nixos-25.05 | nixos-25.05 | only minor versions that include security updates |
| nixos-unstable | latest | latest and greatest, major versions might change |
## List of images

10
images/attic/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ docker-nixpkgs
, attic-client
}:
(docker-nixpkgs.nix.override {
extraContents = [ attic-client ];
}).overrideAttrs (prev: {
meta = (prev.meta or { }) // {
description = "Nix and Attic client image";
};
})

View file

@ -14,7 +14,7 @@
, gnutar
, gzip
, iana-etc
, iproute
, iproute2
, less
, lib
, nix
@ -42,7 +42,11 @@ let
nix
# runtime dependencies of nix
cacert
# HACK: don't include the "hashed" output. It has overlapping files with
# the "unbundled" output, and that breaks the build.
(cacert // {
outputs = builtins.filter (x: x != "hashed") cacert.outputs;
})
gitReallyMinimal
gnutar
gzip
@ -61,7 +65,7 @@ let
(gcc-unwrapped // {
outputs = builtins.filter (x: x != "libgcc") gcc-unwrapped.outputs;
})
iproute
iproute2
];
};

View file

@ -3,7 +3,7 @@
}:
(docker-nixpkgs.nix.override {
# only available since 24.05
extraContents = if devenv == null then [] else [ devenv ];
extraContents = [ devenv ];
}).overrideAttrs (prev: {
meta = (prev.meta or { }) // {
description = "Nix and devenv image";

6
images/maddy/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ buildCLIImage
, maddy
}:
buildCLIImage {
drv = maddy;
}

View file

@ -1,10 +1,10 @@
{ docker-nixpkgs
, nixFlakes
, nixVersions
, writeTextFile
, extraContents ? [ ]
}:
docker-nixpkgs.nix.override {
nix = nixFlakes;
nix = nixVersions.stable;
extraContents = [
(writeTextFile {
name = "nix.conf";
@ -12,6 +12,7 @@ docker-nixpkgs.nix.override {
text = ''
accept-flake-config = true
experimental-features = nix-command flakes
max-jobs = auto
'';
})
] ++ extraContents;

View file

@ -84,11 +84,12 @@ let
mkdir -p libexec/nix
ln -s /bin/nix libexec/nix/build-remote
# Enable flakes
# Enable flakes and parallel building
mkdir -p etc/nix
cat <<NIX_CONFIG > etc/nix/nix.conf
accept-flake-config = true
experimental-features = nix-command flakes
max-jobs = auto
NIX_CONFIG
# Add run-as-user script

View file

@ -1,7 +1,6 @@
{ docker-nixpkgs
, pkgs
, nixUnstable
}:
docker-nixpkgs.nix.override {
nix = pkgs.nixVersions.latest or pkgs.nixUnstable;
nix = pkgs.nixVersions.latest;
}

View file

@ -0,0 +1,6 @@
{ buildCLIImage
, pocket-id
}:
buildCLIImage {
drv = pocket-id;
}