mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
remove old LUKS scripts
This commit is contained in:
parent
54f5598c74
commit
8e60defb30
3 changed files with 0 additions and 32 deletions
|
@ -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 "$@"
|
||||
'';
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue