mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
40 lines
629 B
Nix
40 lines
629 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
swapDevices = [{
|
|
device = "/dev/disk/by-label/swap";
|
|
}];
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/root";
|
|
fsType = "ext4";
|
|
options = [
|
|
"noatime"
|
|
"discard"
|
|
];
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
|
device = "/dev/disk/by-label/nix";
|
|
fsType = "ext4";
|
|
options = [
|
|
"noatime"
|
|
"discard"
|
|
];
|
|
};
|
|
|
|
fileSystems."/home" = {
|
|
device = "/dev/disk/by-label/home";
|
|
fsType = "ext4";
|
|
options = [
|
|
"noatime"
|
|
"discard"
|
|
];
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/boot";
|
|
fsType = "vfat";
|
|
};
|
|
}
|