From aff435a0fb3a56b1d7b738c7dede363440884b3a Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 17 Sep 2026 15:05:36 +0100 Subject: Add the Canonical laptop profile and setup workflows --- scripts/nix-daemon-update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/nix-daemon-update.sh (limited to 'scripts/nix-daemon-update.sh') diff --git a/scripts/nix-daemon-update.sh b/scripts/nix-daemon-update.sh new file mode 100644 index 0000000..2b2d12c --- /dev/null +++ b/scripts/nix-daemon-update.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail +if [[ -e /nix/nix-installer || -e /etc/nix/nix.custom.conf ]] || dpkg-query -W nix-bin >/dev/null 2>&1; then + echo 'error: this recipe is only for the upstream multi-user installer' >&2 + exit 1 +fi +nix=/nix/var/nix/profiles/default/bin/nix +[[ -x $nix ]] +sudo "$nix" --extra-experimental-features nix-command upgrade-nix --profile /nix/var/nix/profiles/default +sudo systemctl daemon-reload +sudo systemctl restart nix-daemon.service +"$nix" --version -- cgit v1.3.1