Move VM disks out of host config
This commit is contained in:
parent
d47f621f7b
commit
7cbf708ecf
5 changed files with 22 additions and 65 deletions
|
@ -1,25 +1,4 @@
|
|||
{pkgs, ...}: let
|
||||
rootDisk = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
|
||||
rootPart = "/dev/disk/by-uuid/d90b9f44-42fb-4ccc-8b8d-05375d953742";
|
||||
dockerPart = "/dev/disk/by-uuid/0eb05c79-7765-4b7e-bf22-c3a53f516db5";
|
||||
in {
|
||||
boot.loader.grub.device = rootDisk;
|
||||
|
||||
# Root filesystem.
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/root";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# Docker data directory.
|
||||
fileSystems."/home/fern/docker" = {
|
||||
device = "/dev/disk/by-label/docker";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# Swap partition.
|
||||
swapDevices = [{device = "/dev/disk/by-label/swap";}];
|
||||
|
||||
{pkgs, ...}: {
|
||||
# Update Musicbrainz search indexes once a week.
|
||||
systemd.timers."musicbrainz-update-indexes" = {
|
||||
wantedBy = ["timers.target"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue