Skip to content

Commit 32b59a6

Browse files
committed
Merge #750: Update to NixOS 24.11
b5e5974 flake: update extra-container (Erik Arvstedt) 2d53b57 tests.py: fix syntax warning (Erik Arvstedt) 09ba739 nbxplorer: remove deprecated option (Erik Arvstedt) d6bae0a python3Packages.clnrest: update to NixOS 24.11 (Erik Arvstedt) b78116b python3Packages.clnrest: use `--replace-fail` (Erik Arvstedt) dc8f969 python3Packages.pyln-proto: update to NixOS 24.11 (Erik Arvstedt) 8af7fc4 python3Packages.joinmarket: update to NixOS 24.11 (Erik Arvstedt) c66a6aa python3Packages.joinmarket: allow Python 3.12 (Erik Arvstedt) 3ce3a00 modules: update to NixOS 24.11 (Erik Arvstedt) a3ded4c update to NixOS 24.11 (Erik Arvstedt) ba46d20 update-flake.sh: add workflow for updating the NixOS version (Erik Arvstedt) f60a506 update-flake.sh: remove support for Nix < 2.19 (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACK b5e5974 Tree-SHA512: a252a2e20266924c58877aebe03a25ef65166cf8404ecf6a5f8a0b0eb5bf569ec5f13894d08723058c8d6b354378c609cb626f6866f152b06d26e8a73181f02c
2 parents 5dd5b89 + b5e5974 commit 32b59a6

File tree

16 files changed

+53
-53
lines changed

16 files changed

+53
-53
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ task:
99

1010
container:
1111
# Defined in https://github.com/nix-community/docker-nixpkgs
12-
image: nixpkgs/nix-flakes:nixos-24.05
12+
image: nixpkgs/nix-flakes:nixos-24.11
1313

1414
matrix:
1515
- name: modules_test

dev/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ It's easiest to use an existing service as a template:
9797
Most other services use packages that are already included in nixpkgs.
9898

9999
## Switching to a new NixOS release
100-
101-
- [flake.nix](../flake.nix): update `nixpkgs.url`
100+
- Run command `update-flake.sh 24.11`
102101
- [cirrus.yml](../.cirrus.yml): update toplevel container -> image attribute
103102
- [examples/configuration.nix](../examples/configuration.nix): update `system.stateVersion`
104103
- [examples/flakes/flake.nix](../examples/flakes/flake.nix): update `inputs.nix-bitcoin.url`

examples/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
# this value at the release version of the first install of this system.
319319
# Before changing this value read the documentation for this option
320320
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
321-
system.stateVersion = "24.05"; # Did you read the comment?
321+
system.stateVersion = "24.11"; # Did you read the comment?
322322

323323
# The nix-bitcoin release version that your config is compatible with.
324324
# When upgrading to a backwards-incompatible release, nix-bitcoin will display an

examples/flakes/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release";
1212
# You can also use a version branch to track a specific NixOS release
13-
# inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/nixos-24.05";
13+
# inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/nixos-24.11";
1414

1515
inputs.nixpkgs.follows = "nix-bitcoin/nixpkgs";
1616
inputs.nixpkgs-unstable.follows = "nix-bitcoin/nixpkgs-unstable";

flake.lock

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
'';
66

77
inputs = {
8-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
8+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
99
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
1010
flake-utils.url = "github:numtide/flake-utils";
1111
extra-container = {
12-
url = "github:erikarvstedt/extra-container";
12+
url = "github:erikarvstedt/extra-container/0.13";
1313
inputs.nixpkgs.follows = "nixpkgs";
1414
inputs.flake-utils.follows = "flake-utils";
1515
};

helper/update-flake.sh

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -euo pipefail
33

44
# This script does the following:
5-
# - Update all flake inputs, including nixpkgs
5+
# - When called without arguments, update all flake inputs, including nixpkgs.
6+
# - When called with a version argument, set input `nixpkgs` in `flake.nix` to the
7+
# specified version and only update this input.
68
# - Print version updates of pinned pkgs like so:
79
# Pkg updates in nixpkgs unstable:
810
# bitcoin: 0.20.0 -> 0.21.1
@@ -39,23 +41,11 @@ if [[ $forceRun ]] && ! git diff --quiet ../flake.{nix,lock}; then
3941
exit 1
4042
fi
4143

42-
# Support Nix >=2.19
43-
{
44-
versionGreaterThanOrEqual() {
45-
[[ $1 != $(echo -e "$1\n$2" | sort -V | head -n1) || $1 == "$2" ]]
46-
}
47-
nixVersion=$(nix --version | cut -d\ -f 3)
48-
if versionGreaterThanOrEqual "$nixVersion" 2.19; then
49-
# https://nixos.org/manual/nix/stable/release-notes/rl-2.19#:~:text=nix%20flake%20update
50-
nixUpdateArg=--flake
51-
else
52-
nixUpdateArg=
53-
fi
54-
}
55-
56-
echo "Updating flake 'nixos-search'"
57-
nix flake update $nixUpdateArg ../test/nixos-search
58-
echo
44+
if [[ ! $nixosVersion ]]; then
45+
echo "Updating flake 'nixos-search'"
46+
nix flake update --flake ../test/nixos-search
47+
echo
48+
fi
5949

6050
versions=$(nix eval --json -f update-flake.nix versions)
6151

@@ -65,8 +55,10 @@ versions=$(nix eval --json -f update-flake.nix versions)
6555
echo "Updating main flake"
6656
if [[ $nixosVersion ]]; then
6757
sed -Ei "s|(nixpkgs.url = .*nixos-)[^\"]+|\1$nixosVersion|" ../flake.nix
58+
nix flake update nixpkgs --flake ..
59+
else
60+
nix flake update --flake ..
6861
fi
69-
nix flake update $nixUpdateArg ..
7062

7163
echo
7264
nix eval --raw -f update-flake.nix --argstr prevVersions "$versions" showUpdates; echo

modules/btcpayserver.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ in {
168168
lbtcnodeendpoint=${nbLib.addressWithPort liquidd.address liquidd.whitelistedPort}
169169
''}
170170
postgres=User ID=${cfg.nbxplorer.user};Host=/run/postgresql;Database=nbxplorer
171-
automigrate=1
172171
'';
173172
in rec {
174173
wantedBy = [ "multi-user.target" ];

modules/netns-isolation.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ let
9191
enabledServices = filterAttrs (n: v: isEnabled n) cfg.services;
9292
isEnabled = x: config.services.${x}.enable;
9393

94-
ip = "${pkgs.iproute}/bin/ip";
94+
ip = "${pkgs.iproute2}/bin/ip";
9595
iptables = "${config.networking.firewall.package}/bin/iptables";
9696

9797
bridgeIp = "169.254.${toString cfg.addressblock}.10";

pkgs/pinned.nix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
pkgs: pkgsUnstable:
33
{
44
inherit (pkgs)
5-
charge-lnd
6-
elementsd
7-
extra-container
8-
lightning-pool
9-
lndconnect;
10-
11-
inherit (pkgsUnstable)
125
bitcoin
136
bitcoind
147
btcpayserver
8+
charge-lnd
159
clboss
1610
clightning
1711
electrs
12+
elementsd
13+
extra-container
1814
fulcrum
1915
hwi
2016
lightning-loop
17+
lightning-pool
2118
lnd
19+
lndconnect
2220
nbxplorer;
2321

22+
inherit (pkgsUnstable)
23+
;
24+
2425
inherit pkgs pkgsUnstable;
2526
}

0 commit comments

Comments
 (0)