free target env of seal-off command

This commit is contained in:
Phillip Klein 2024-10-16 15:55:16 +02:00
parent be9ab28418
commit 9921e719ed
3 changed files with 9 additions and 11 deletions

4
README
View File

@ -10,5 +10,7 @@ On target device:
* Copy device database to ~/artiq
* Set timezone and kb layout
* Comment out openssh.authorizedKeys.keys
* sudo seal-off
* history clear
On build device:
* cat sealoff.sh | ssh rabi@artiq "sudo sh"

View File

@ -1,14 +1,6 @@
{ config, pkgs, artiq, ... }:
let
sealOff = pkgs.writeShellScriptBin "seal-off"
''
set -e
nixos-rebuild boot
nix-collect-garbage -d
'';
in {
{
imports =
[
./hardware-configuration.nix
@ -44,7 +36,6 @@ in {
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
sealOff
wget
vim
gitAndTools.gitFull

5
sealoff.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -e
nixos-rebuild boot
nix-collect-garbage -d