init
This commit is contained in:
commit
2be8de47fa
87 changed files with 11501 additions and 0 deletions
28
system/game-drive.nix
Normal file
28
system/game-drive.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue