nix/module/common/Filesystem.nix

24 lines
558 B
Nix
Raw Normal View History

# I use the same layout on all hosts with GPT labels.
# This way I can configure system's FS in one place here.
{ ... }: {
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXROOT";
fsType = "ext4";
options = [ "noatime" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/NIXBOOT";
fsType = "vfat";
};
# /etc overlay.
2024-06-25 04:04:39 +03:00
# ISSUE: Should be fixed when you read this. Try it!
# boot.initrd.systemd.enable = true;
# systemd.sysusers.enable = true;
# system.etc.overlay = {
# enable = true;
# mutable = false;
# };
}