palantir: changed disk config
This commit is contained in:
parent
3b58f2e88f
commit
d56117ed17
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
disks = [
|
disks = [
|
||||||
"/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
|
"/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406"
|
||||||
"/dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B7783176055"
|
#"/dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B7783176055"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -15,12 +15,18 @@ in
|
|||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
bios_grub = {
|
esp = {
|
||||||
size = "2M";
|
size = "512M";
|
||||||
type = "EF02";
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot/efi";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pv = {
|
lvm = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "lvm_pv";
|
type = "lvm_pv";
|
||||||
@ -31,22 +37,22 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ssd1 = {
|
#ssd1 = {
|
||||||
type = "disk";
|
# type = "disk";
|
||||||
device = builtins.elemAt disks 1;
|
# device = builtins.elemAt disks 1;
|
||||||
content = {
|
# content = {
|
||||||
type = "gpt";
|
# type = "gpt";
|
||||||
partitions = {
|
# partitions = {
|
||||||
pv = {
|
# lvm = {
|
||||||
size = "100%";
|
# size = "100%";
|
||||||
content = {
|
# content = {
|
||||||
type = "lvm_pv";
|
# type = "lvm_pv";
|
||||||
vg = "mainpool";
|
# vg = "mainpool";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
};
|
};
|
||||||
|
|
||||||
lvm_vg = {
|
lvm_vg = {
|
||||||
@ -55,34 +61,28 @@ in
|
|||||||
lvs = {
|
lvs = {
|
||||||
root = {
|
root = {
|
||||||
size = "30G";
|
size = "30G";
|
||||||
lvm_type = "raid0";
|
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
mountOptions = [ "noatime" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
size = "50G";
|
size = "50G";
|
||||||
lvm_type = "raid0";
|
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/nix";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "noatime" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
size = "100%FREE";
|
size = "100%FREE";
|
||||||
lvm_type = "raid0";
|
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/games";
|
mountpoint = "/games";
|
||||||
mountOptions = [ "noatime" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit release myUser disko; };
|
specialArgs = { inherit release myUser disko; };
|
||||||
modules = [
|
modules = [
|
||||||
|
./modules/base.nix
|
||||||
./hosts/isengard.nix
|
./hosts/isengard.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
efi.efiSysMountPoint = "/boot/efi";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user