Skip to content

Commit

Permalink
fix(flake): use nixos-24.05
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed May 27, 2024
1 parent 56d8c3e commit 5c7830c
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cells/klipper/packages/katapult-firmware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ in
avrdude
stm32flash
pkg-config
wxGTK32 # Required for bossac
# wxGTK32 # Required for bossac
];

preBuild = "cp ${firmwareConfig} ./.config";
Expand Down
2 changes: 1 addition & 1 deletion cells/klipper/packages/klipper-firmware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
avrdude
stm32flash
pkg-config
wxGTK32 # Required for bossac
# wxGTK32 # Required for bossac
];

preBuild = "cp ${firmwareConfig} ./.config";
Expand Down
15 changes: 14 additions & 1 deletion cells/klipper/packages/mainsail.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,28 @@ in
zip
];

dontNpmBuild = true;

buildPhase = ''
runHook preBuild
npx vite build
runHook postBuild
'';

prePatch = ''
export CYPRESS_INSTALL_BINARY=0
export CYPRESS_RUN_BINARY=${cypress}/bin/Cypress
'';

installPhase = ''
runHook preInstall
mkdir -p $out/share
rm dist/mainsail.zip
cp -r dist $out/share/mainsail
runHook postInstall
'';

passthru.npmDepsHash = mkNpmDepsHashCalculator sources.mainsail.src;
Expand Down
10 changes: 9 additions & 1 deletion cells/klipper/packages/moonraker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@
preprocess-cancellation
jinja2
dbus-next
apprise
(
apprise.overrideAttrs (o: rec {
disabledTests =
o.disabledTests
++ [
"test_plugin_zulip"
];
})
)
libgpiod
]);
in
Expand Down
1 change: 1 addition & 0 deletions cells/minecraft-servers/modules/_options-backup-restic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"user"
"paths"
"environmentFile"
"runCheck"
];
in {
options =
Expand Down
1 change: 1 addition & 0 deletions cells/nixos/hosts/oracle/minecraft-servers/litv3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
exclude = [
"dumps"
"logs"
"bluemap"
];
pruneOpts = [
"--keep-daily 3"
Expand Down
18 changes: 9 additions & 9 deletions cells/nixos/hosts/voron/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
i2c-tools
];

environment.etc."u-boot-cm4".source = pkgs.ubootRaspberryPi4_64bit.override {
extraConfig = ''
CONFIG_USB_STORAGE=y
CONFIG_USB_XHCI_BRCM=y
'';
extraPatches = [
./patches/xhci-uboot.patch
];
};
# environment.etc."u-boot-cm4".source = pkgs.ubootRaspberryPi4_64bit.override {
# extraConfig = ''
# CONFIG_USB_STORAGE=y
# CONFIG_USB_XHCI_BRCM=y
# '';
# extraPatches = [
# ./patches/xhci-uboot.patch
# ];
# };
}
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
inputs = {
latest.url = "github:nixos/nixpkgs/nixos-unstable";
k8s.url = "github:nixos/nixpkgs/3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3";
nixos.url = "github:nixos/nixpkgs/release-24.05";
nixos.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs.follows = "nixos";

darwin = {
Expand Down

0 comments on commit 5c7830c

Please sign in to comment.