palantir: changed disko config
This commit is contained in:
parent
de90239152
commit
e10e3059b9
96
disko/palantir/lvm-striped.nix
Normal file
96
disko/palantir/lvm-striped.nix
Normal file
@ -0,0 +1,96 @@
|
||||
{...}:
|
||||
|
||||
let
|
||||
disks = [
|
||||
"/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406"
|
||||
"/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
|
||||
];
|
||||
in
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
ssd0 = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 0;
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
esp = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot/efi";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
|
||||
raid = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "mdraid";
|
||||
name = "md0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ssd1 = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 1;
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
raid = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "mdraid";
|
||||
name = "md0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdadm = {
|
||||
md0 = {
|
||||
type = "mdadm";
|
||||
level = 0; # RAID0
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
root = {
|
||||
size = "30G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
size = "50G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
};
|
||||
|
||||
games = {
|
||||
size = "130G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/games";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -3,7 +3,7 @@
|
||||
let
|
||||
disks = [
|
||||
"/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406"
|
||||
#"/dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B7783176055"
|
||||
"/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
|
||||
];
|
||||
in
|
||||
{
|
||||
@ -37,22 +37,22 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
#ssd1 = {
|
||||
# type = "disk";
|
||||
# device = builtins.elemAt disks 1;
|
||||
# content = {
|
||||
# type = "gpt";
|
||||
# partitions = {
|
||||
# lvm = {
|
||||
# size = "100%";
|
||||
# content = {
|
||||
# type = "lvm_pv";
|
||||
# vg = "mainpool";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
#};
|
||||
ssd1 = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 1;
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
lvm = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "mainpool";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lvm_vg = {
|
||||
|
||||
@ -31,15 +31,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Mounts
|
||||
#fileSystems."/games" = {
|
||||
# device = "/dev/disk/by-uuid/90bea801-2b8a-40db-8862-ccc55f2b2262";
|
||||
# fsType = "ext4";
|
||||
# options = [
|
||||
# "nofail" # Prevent system from failing if this drive doesn't mount
|
||||
# ];
|
||||
#};
|
||||
|
||||
# Release
|
||||
system.stateVersion = release;
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
killall
|
||||
neovim
|
||||
progress
|
||||
pv
|
||||
];
|
||||
|
||||
# SSH
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user