mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
disko/tungsten: shrink size of drives
This commit is contained in:
parent
9abb32c4fa
commit
f41d27ebff
1 changed files with 8 additions and 5 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
# Adapted from: https://github.com/nix-community/disko/blob/master/example/luks-lvm.nix
|
# Adapted from: https://github.com/nix-community/disko/blob/master/example/luks-lvm.nix
|
||||||
|
#
|
||||||
|
# This device has a total of 233GB of harddrive storage.
|
||||||
|
#
|
||||||
{
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
main = {
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = throw "change me";
|
device = "/dev/sda";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
|
@ -42,7 +45,7 @@
|
||||||
type = "lvm_vg";
|
type = "lvm_vg";
|
||||||
lvs = {
|
lvs = {
|
||||||
root = {
|
root = {
|
||||||
size = "75G";
|
size = "50G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
|
|
@ -51,7 +54,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
size = "200G";
|
size = "100G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
|
|
@ -60,7 +63,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
swap = {
|
swap = {
|
||||||
size = "48G"; # > 32G for hibernation
|
size = "12G";
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
discardPolicy = "both";
|
discardPolicy = "both";
|
||||||
|
|
@ -82,7 +85,7 @@
|
||||||
"/tmp" = {
|
"/tmp" = {
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"size=4G"
|
"size=2G"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue