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