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";
|
size = "4G";
|
||||||
name = "ESP";
|
name = "ESP";
|
||||||
},
|
},
|
||||||
|
rootfsName ? "/rootfs",
|
||||||
|
homeName ? "/home",
|
||||||
disk,
|
disk,
|
||||||
swapSize,
|
swapSize,
|
||||||
...
|
...
|
||||||
|
@ -71,11 +73,11 @@ in rec {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = ["-f"];
|
extraArgs = ["-f"];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"/rootfs" = {
|
${rootfsName} = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
mountOptions = ["compress=zstd"];
|
mountOptions = ["compress=zstd"];
|
||||||
};
|
};
|
||||||
"/home" = {
|
${homeName} = {
|
||||||
mountpoint = "/home";
|
mountpoint = "/home";
|
||||||
mountOptions = ["compress=zstd"];
|
mountOptions = ["compress=zstd"];
|
||||||
};
|
};
|
||||||
|
@ -97,6 +99,8 @@ in rec {
|
||||||
foxtrot = standardWithHibernateSwap {
|
foxtrot = standardWithHibernateSwap {
|
||||||
disk = "nvme0n1";
|
disk = "nvme0n1";
|
||||||
swapSize = "32G";
|
swapSize = "32G";
|
||||||
|
rootfsName = "/nixos-rootfs";
|
||||||
|
homeName = "/nixos-home";
|
||||||
esp = {
|
esp = {
|
||||||
label = "disk-primary-ESP";
|
label = "disk-primary-ESP";
|
||||||
name = "disk-primary-ESP";
|
name = "disk-primary-ESP";
|
||||||
|
|
|
@ -250,6 +250,7 @@
|
||||||
MANPAGER = "bat --style=plain";
|
MANPAGER = "bat --style=plain";
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
aria2
|
||||||
curl
|
curl
|
||||||
dua
|
dua
|
||||||
bat
|
bat
|
||||||
|
|
|
@ -176,7 +176,15 @@
|
||||||
|
|
||||||
loader = {
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
systemd-boot.enable = true;
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
extraEntries = {
|
||||||
|
"arch.conf" = ''
|
||||||
|
title Arch
|
||||||
|
efi /efi/Arch/grubx64.efi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE(oninstall):
|
# NOTE(oninstall):
|
||||||
|
|
Loading…
Reference in a new issue