remove old LUKS scripts

This commit is contained in:
Sean Buckley 2021-09-08 16:55:26 -04:00
parent 54f5598c74
commit 8e60defb30
3 changed files with 0 additions and 32 deletions

View file

@ -66,13 +66,9 @@
apps = self.lib.forAllSystems (system:
with nixpkgs.legacyPackages.${system};
let
binScript = x: writeShellScriptBin "script" "exec ${x}";
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
in
{
luks-mirror = binScript ./misc/luks-mirror.sh;
luks-single = binScript ./misc/luks-single.sh;
jupyterlab = writeShellScriptBin "jupyterlab" ''
exec ${jupy}/bin/python -m jupyterlab "$@"
'';

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -ex
cryptsetup -y -v luksFormat "/dev/disk/by-partlabel/_root1"
cryptsetup -y -v luksFormat "/dev/disk/by-partlabel/_root2"
cryptsetup --allow-discards open "/dev/disk/by-partlabel/_root1" cryptroot1
cryptsetup --allow-discards open "/dev/disk/by-partlabel/_root2" cryptroot2
mkfs.btrfs -f -L_root -mraid1 -draid1 /dev/mapper/cryptroot1 /dev/mapper/cryptroot2
mount /dev/disk/by-label/_root /mnt -o discard,compress=zstd:1
btrfs subvolume create /mnt/home
btrfs subvolume create /mnt/nix
mkdir /mnt/boot

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
set -ex
cryptsetup -y -v luksFormat "/dev/disk/by-partlabel/_root"
cryptsetup --allow-discards open "/dev/disk/by-partlabel/_root" cryptroot
mkfs.btrfs -f -L_root /dev/mapper/cryptroot
mount /dev/disk/by-label/_root /mnt -o discard,compress=zstd:1
btrfs subvolume create /mnt/home
btrfs subvolume create /mnt/nix
mkdir /mnt/boot