Compare commits
10 commits
35b2808180
...
64a3352bbf
Author | SHA1 | Date | |
---|---|---|---|
![]() |
64a3352bbf | ||
![]() |
9a5876396f | ||
![]() |
96c221d72c | ||
![]() |
02f2b05be8 | ||
![]() |
98e0048215 | ||
![]() |
074dd32ad1 | ||
![]() |
fe1eb377ed | ||
![]() |
8fdb8770b3 | ||
![]() |
8fab1455c9 | ||
![]() |
f2d5bd9472 |
11 changed files with 40 additions and 17 deletions
6
.github/workflows/nix.yml
vendored
6
.github/workflows/nix.yml
vendored
|
@ -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
|
||||
|
|
|
@ -10,5 +10,4 @@ build:
|
|||
- NIXPKGS_CHANNEL: nixos-unstable
|
||||
IMAGE_TAG: latest
|
||||
- NIXPKGS_CHANNEL:
|
||||
- nixos-24.05
|
||||
- nixos-24.11
|
||||
- nixos-25.05
|
||||
|
|
|
@ -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
10
images/attic/default.nix
Normal 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";
|
||||
};
|
||||
})
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -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
6
images/maddy/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ buildCLIImage
|
||||
, maddy
|
||||
}:
|
||||
buildCLIImage {
|
||||
drv = maddy;
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ docker-nixpkgs
|
||||
, pkgs
|
||||
, nixUnstable
|
||||
}:
|
||||
docker-nixpkgs.nix.override {
|
||||
nix = pkgs.nixVersions.latest or pkgs.nixUnstable;
|
||||
nix = pkgs.nixVersions.latest;
|
||||
}
|
||||
|
|
6
images/pocket-id/default.nix
Normal file
6
images/pocket-id/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ buildCLIImage
|
||||
, pocket-id
|
||||
}:
|
||||
buildCLIImage {
|
||||
drv = pocket-id;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue