Centralize default settings

This commit is contained in:
Manuel Thalmann 2024-07-08 01:47:23 +02:00
parent 3e3568ac59
commit 6b1bd3a50c
7 changed files with 54 additions and 44 deletions

View file

@ -1,36 +1,5 @@
{ ... }:
let
fs = import ./partition/fs.nix;
in {
imports = [
./partition/disks.nix
];
config = {
partition = {
os = {
partitions = {
Boot = {
index = 1;
type = "uefi";
size = "+1G";
format = fs.fat32;
mountPoint = "/boot";
};
Swap = {
index = 2;
type = "swap";
};
OS = {
index = 3;
type = "linux";
format = fs.ext4;
mountPoint = "/";
};
};
};
};
};
}
{ ... }: {
imports = [
./partition/disks.nix
];
}

View file

@ -1,6 +1,6 @@
{ ... }: {
imports = [
../partition.nix
../../../scripts/Arch/OS/config.nix
../../Generic/Arch/config.nix
];
}

View file

@ -1,6 +1,6 @@
{ ... }: {
imports = [
../../lib/modules/partition.nix
../Generic/config.nix
];
config = {

View file

@ -1,6 +1,6 @@
{ ... }: {
imports = [
../../../lib/modules/partition.nix
../config.nix
];
config = {

View file

@ -0,0 +1,36 @@
{ ... }:
let
fs = import ../../lib/modules/partition/fs.nix;
in {
imports = [
../../lib/modules/partition.nix
];
config = {
partition = {
os = {
partitions = {
Boot = {
index = 1;
type = "uefi";
size = "+1G";
format = fs.fat32;
mountPoint = "/boot";
};
Swap = {
index = 2;
type = "swap";
};
OS = {
index = 3;
type = "linux";
format = fs.ext4;
mountPoint = "/";
};
};
};
};
};
}

View file

@ -1,9 +1,5 @@
{ ... }: {
imports = [
../../../scripts/Arch/OS/config.nix
../config.nix
];
config = {
partition.os.deviceName = "nvme0n1";
};
}

View file

@ -0,0 +1,9 @@
{ ... }: {
imports = [
../Generic/Arch/config.nix
];
config = {
partition.os.deviceName = "nvme0n1";
};
}