34 lines
1013 B
Nix
Executable File
34 lines
1013 B
Nix
Executable File
# Disk layout of `desktop`; the generic logic lives in modules/nixos/hardware/disks.nix.
|
|
# The device paths come from disk-ids.json, which `nix run .#install` rewrites
|
|
# after you pick the disks (list them with `ls -l /dev/disk/by-id`).
|
|
{ lib, ... }:
|
|
let
|
|
ids = lib.importJSON ./disk-ids.json;
|
|
in
|
|
{
|
|
my.disks = {
|
|
enable = true;
|
|
system.device = ids.system;
|
|
|
|
data = {
|
|
enable = true;
|
|
device = ids.data;
|
|
|
|
# Each entry becomes a btrfs subvolume on the data disk, mounted at
|
|
# ~/<Name>. To add a folder later, add `Name = { };` here, create the
|
|
# subvolume (`btrfs subvolume create /mnt/data/@name`, with the data
|
|
# disk's top level mounted), then rebuild. Storage is a free-form folder
|
|
# to organise yourself; Steam's library goes in ~/Games/SteamLibrary.
|
|
homeFolders = {
|
|
Games = { };
|
|
Downloads = { };
|
|
Documents = { };
|
|
Music = { };
|
|
Pictures = { };
|
|
Videos = { };
|
|
Storage = { };
|
|
};
|
|
};
|
|
};
|
|
}
|