Added configuration for Andrej
Use librewolf instead of firefox
This commit is contained in:
parent
c83cece584
commit
6f5a549bac
14 changed files with 5082 additions and 6 deletions
54
disko/ext4-swap.nix
Normal file
54
disko/ext4-swap.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ device, swapSize ? 16 }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk.${device} = {
|
||||
type = "disk";
|
||||
inherit device;
|
||||
content = {
|
||||
type = "gpt"; # Initialize the disk with a GPT partition table
|
||||
partitions = {
|
||||
ESP = { # Setup the EFI System Partition
|
||||
type = "EF00"; # Set the partition type
|
||||
size = "1000M"; # Make the partition a gig
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat"; # Format it as a FAT32 filesystem
|
||||
mountpoint = "/boot"; # Mount it to /boot
|
||||
};
|
||||
};
|
||||
primary = { # Setup the LVM partition
|
||||
size = "100%"; # Fill up the rest of the drive with it
|
||||
content = {
|
||||
type = "lvm_pv"; # pvcreate
|
||||
vg = "vg1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
lvm_vg = { # vgcreate
|
||||
vg1 = { # /dev/vg1
|
||||
type = "lvm_vg";
|
||||
lvs = { # lvcreate
|
||||
swap = { # Logical Volume = "swap", /dev/vg1/swap
|
||||
size = "${swapSize}G";
|
||||
content = {
|
||||
type = "swap";
|
||||
};
|
||||
};
|
||||
root = { # Logical Volume = "root", /dev/vg1/root
|
||||
size = "100%FREE"; # Use the remaining space in the Volume Group
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue