This commit is contained in:
ashisgreat22 2026-01-14 21:24:19 +01:00
commit 2be8de47fa
87 changed files with 11501 additions and 0 deletions

28
system/game-drive.nix Normal file
View file

@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}:
{
# Unlock secondary drive in Stage 2 (after /persist is mounted)
environment.etc."crypttab".text = ''
cryptdata /dev/disk/by-id/nvme-KINGSTON_SNVS1000G_50026B7784BF8876 /persist/etc/cryptdata.key header=/persist/etc/cryptdata.header
'';
# Ensure the mount point exists on the tmpfs root
systemd.tmpfiles.rules = [
"d /home/ashie/Games 0755 ashie users -"
"L+ /home/ashie/.local/share/Steam - - - - /home/ashie/Games/Steam"
];
fileSystems."/home/ashie/Games" = {
device = "/games";
fsType = "none";
options = [
"bind"
"X-systemd.after=games.mount"
];
};
}