mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
changes
This commit is contained in:
parent
ae71471b1a
commit
1f1c7dae67
16 changed files with 164 additions and 420 deletions
|
|
@ -1,16 +1,12 @@
|
|||
let
|
||||
dev = "/dev/disk/by-id/ata-CT2000MX500SSD1_2137E5D2D47D";
|
||||
|
||||
in
|
||||
{ disk }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
one = {
|
||||
type = "disk";
|
||||
device = dev;
|
||||
device = disk;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1G";
|
||||
|
|
@ -38,28 +34,18 @@ in
|
|||
nix = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
aaa = {
|
||||
size = "1M";
|
||||
};
|
||||
zzz = {
|
||||
size = "1M";
|
||||
};
|
||||
root = {
|
||||
size = "252G";
|
||||
size = "5%";
|
||||
content = {
|
||||
name = "root";
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
mountOptions = [ "defaults" ];
|
||||
};
|
||||
};
|
||||
home = {
|
||||
size = "100%FREE";
|
||||
content = {
|
||||
name = "home";
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/home";
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
{ disks ? [ "/dev/vda" ], ... }:
|
||||
|
||||
{ disk ? "/dev/vda" }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
one = {
|
||||
device = builtins.elemAt disks 0;
|
||||
type = "disk";
|
||||
device = disk;
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
|
|
@ -17,8 +16,6 @@
|
|||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
bootable = true;
|
||||
priority = 1;
|
||||
};
|
||||
primary = {
|
||||
size = "100%";
|
||||
|
|
@ -36,12 +33,6 @@
|
|||
vm = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
aaa = {
|
||||
size = "1M";
|
||||
};
|
||||
zzz = {
|
||||
size = "1M";
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
|
|
|
|||
|
|
@ -1,16 +1,12 @@
|
|||
let
|
||||
dev = "/dev/disk/by-id/ata-CT2000MX500SSD1_2137E5D2D47D";
|
||||
|
||||
in
|
||||
{ disk }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
one = {
|
||||
type = "disk";
|
||||
device = dev;
|
||||
device = disk;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1G";
|
||||
|
|
@ -38,28 +34,18 @@ in
|
|||
nix = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
aaa = {
|
||||
size = "1M";
|
||||
};
|
||||
zzz = {
|
||||
size = "1M";
|
||||
};
|
||||
root = {
|
||||
size = "252G";
|
||||
size = "5%";
|
||||
content = {
|
||||
name = "root";
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
mountOptions = [ "defaults" ];
|
||||
};
|
||||
};
|
||||
home = {
|
||||
size = "100%FREE";
|
||||
content = {
|
||||
name = "home";
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/home";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue