From 8d3a2697d1df001576ab6fb7ca236f3ffcc45d05 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 10 Sep 2024 22:35:41 +0100 Subject: [PATCH] Error: unsupported tarball input attribute 'lastModified' --- source/_notes/22.md | 4 +--- source/_notes/23.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 source/_notes/23.md diff --git a/source/_notes/22.md b/source/_notes/22.md index ec700f8..b10c333 100644 --- a/source/_notes/22.md +++ b/source/_notes/22.md @@ -14,7 +14,7 @@ For example: services: mariadb: image: mariadb:10.9.3 - command: --max_allowed_packet=1GB + command: --max_allowed_packet=5GB volumes: - "./backend_db/mariadb.storage:/var/lib/mysql" ports: @@ -23,5 +23,3 @@ services: ``` No Dockerfiles or configuration files needed. - -It can't be more than 1GB, though. diff --git a/source/_notes/23.md b/source/_notes/23.md new file mode 100644 index 0000000..b0ea7ec --- /dev/null +++ b/source/_notes/23.md @@ -0,0 +1,33 @@ +--- +title: "Error: unsupported tarball input attribute 'lastModified'" +date: 2024-09-10 22:35:41 +tags: [Linux, Nix, NixOS] +links: + - https://discourse.nixos.org/t/error-unsupported-tarball-input-attribute-lastmodified/49435/4 +--- + +Yesterday, my laptop died and I needed to resurrect a spare laptop to work on. + +This laptop was running an outdated version of NixOS, old packages, a different window manager and other things, so I tried to update it to bring it up to date so it's up to date with my dead laptop's configuration. + +Doing so, though, gave me this error: + +> Error: unsupported tarball input attribute ‘lastModified’ + +A normal `sudo nixos-rebuild switch` worked, but trying to use a Flake was generating the error. + +I was able to get it working after running these commands from a Discourse thread: + +```shell +nix shell "github:NixOS/nix/2.18.4" + +nix build .#nixosConfigurations.nixedo.config.system.build.toplevel + +sudo nix-env --profile /nix/var/nix/profiles/system --set ./result + +./result/bin/switch-to-configuration switch +``` + +I also needed to add `--experimental-features 'nix-command flakes'` to the `nix` commands to get them to run. + +Once this finished, I was able to reboot and get a running up-to-date configuration.