Prep for multi-boot partition
This commit is contained in:
parent
9fe5aadc2c
commit
b445b56e8e
3 changed files with 16 additions and 3 deletions
|
@ -29,6 +29,8 @@ in rec {
|
|||
size = "4G";
|
||||
name = "ESP";
|
||||
},
|
||||
rootfsName ? "/rootfs",
|
||||
homeName ? "/home",
|
||||
disk,
|
||||
swapSize,
|
||||
...
|
||||
|
@ -71,11 +73,11 @@ in rec {
|
|||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
subvolumes = {
|
||||
"/rootfs" = {
|
||||
${rootfsName} = {
|
||||
mountpoint = "/";
|
||||
mountOptions = ["compress=zstd"];
|
||||
};
|
||||
"/home" = {
|
||||
${homeName} = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = ["compress=zstd"];
|
||||
};
|
||||
|
@ -97,6 +99,8 @@ in rec {
|
|||
foxtrot = standardWithHibernateSwap {
|
||||
disk = "nvme0n1";
|
||||
swapSize = "32G";
|
||||
rootfsName = "/nixos-rootfs";
|
||||
homeName = "/nixos-home";
|
||||
esp = {
|
||||
label = "disk-primary-ESP";
|
||||
name = "disk-primary-ESP";
|
||||
|
|
|
@ -250,6 +250,7 @@
|
|||
MANPAGER = "bat --style=plain";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
aria2
|
||||
curl
|
||||
dua
|
||||
bat
|
||||
|
|
|
@ -176,7 +176,15 @@
|
|||
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
extraEntries = {
|
||||
"arch.conf" = ''
|
||||
title Arch
|
||||
efi /efi/Arch/grubx64.efi
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# NOTE(oninstall):
|
||||
|
|
Loading…
Reference in a new issue