mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
fstab changes
This commit is contained in:
parent
07f4608853
commit
fd5a75eebb
3 changed files with 31 additions and 61 deletions
|
|
@ -30,17 +30,17 @@
|
|||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/8a323092-39b9-4913-8839-452156e48922";
|
||||
device = "/dev/disk/by-uuid/495f5e7b-d9e4-4663-88c5-7021e7292535";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/84474517-05eb-45aa-880e-c18301483b53";
|
||||
device = "/dev/disk/by-uuid/cd0e5c29-716d-47f2-92f4-46ee9fca5af3";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/B4B2-C898";
|
||||
device = "/dev/disk/by-uuid/C061-EE77";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,62 +1,41 @@
|
|||
{ disks ? [ "/dev/nvme0n1" "/dev/sdb" ], ... }:
|
||||
let
|
||||
dev = "/dev/disk/by-id/ata-CT2000MX500SSD1_2137E5D2D47D";
|
||||
|
||||
in
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
one = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 0;
|
||||
device = dev;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "boot";
|
||||
start = "0";
|
||||
end = "200M";
|
||||
fs-type = "fat32";
|
||||
bootable = true;
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
}
|
||||
{
|
||||
start = "200M";
|
||||
end = "100%FREE";
|
||||
};
|
||||
primary = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "stick";
|
||||
vg = "nix";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
disk = {
|
||||
two = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 1;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
start = "0";
|
||||
end = "100%FREE";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "ssd";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lvm_vg = {
|
||||
stick = {
|
||||
nix = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
aaa = {
|
||||
|
|
@ -66,9 +45,9 @@
|
|||
size = "1M";
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
size = "252G";
|
||||
content = {
|
||||
name = "NixOS";
|
||||
name = "root";
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
|
|
@ -77,21 +56,8 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
lvm_vg = {
|
||||
ssd = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
aaa = {
|
||||
size = "1M";
|
||||
};
|
||||
zzz = {
|
||||
size = "1M";
|
||||
};
|
||||
home = {
|
||||
size = "200G";
|
||||
size = "100%FREE";
|
||||
content = {
|
||||
name = "home";
|
||||
type = "filesystem";
|
||||
|
|
|
|||
|
|
@ -33,12 +33,16 @@
|
|||
|
||||
boot.loader = {
|
||||
timeout = null;
|
||||
grub = {
|
||||
#grub = {
|
||||
# enable = true;
|
||||
# devices = [ "nodev" ];
|
||||
# efiSupport = true;
|
||||
# configurationLimit = 3;
|
||||
# splashImage = null;
|
||||
#};
|
||||
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
configurationLimit = 3;
|
||||
splashImage = null;
|
||||
};
|
||||
|
||||
efi = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue