(musicbrainz, minecraft) mount disks by label, swap part
This commit is contained in:
parent
d7b5116106
commit
06e6d6d1ae
2 changed files with 12 additions and 4 deletions
|
@ -8,13 +8,16 @@ in {
|
||||||
|
|
||||||
# Root filesystem.
|
# Root filesystem.
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = rootPart;
|
device = "/dev/disk/by-label/root";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Docker data directory.
|
# Docker data directory.
|
||||||
fileSystems."/home/fern/docker" = {
|
fileSystems."/home/fern/docker" = {
|
||||||
device = dockerPart;
|
device = "/dev/disk/by-label/docker";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Swap partition.
|
||||||
|
swapDevices = [{device = "/dev/disk/by-label/swap";}];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,21 @@
|
||||||
in {
|
in {
|
||||||
boot.loader.grub.device = rootDisk;
|
boot.loader.grub.device = rootDisk;
|
||||||
|
|
||||||
|
# Root filesystem.
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = rootPart;
|
device = "/dev/disk/by-label/root";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Docker data directory.
|
||||||
fileSystems."/home/fern/docker" = {
|
fileSystems."/home/fern/docker" = {
|
||||||
device = dockerPart;
|
device = "/dev/disk/by-label/docker";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Swap partition.
|
||||||
|
swapDevices = [{device = "/dev/disk/by-label/swap";}];
|
||||||
|
|
||||||
# Update Musicbrainz search indexes once a week.
|
# Update Musicbrainz search indexes once a week.
|
||||||
systemd.timers."musicbrainz-update-indexes" = {
|
systemd.timers."musicbrainz-update-indexes" = {
|
||||||
wantedBy = ["timers.target"];
|
wantedBy = ["timers.target"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue