1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: finish decoupling the library functions from config

This commit is contained in:
oddlama 2023-07-01 01:11:58 +02:00
parent 68bb9731d3
commit 80e7c1bdbf
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
59 changed files with 984 additions and 786 deletions

View file

@ -1,14 +1,16 @@
{
config,
pkgs,
inputs,
...
}: {
}: let
disko = import ../../lib/disko.nix inputs;
in {
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/disk/by-id/${config.repo.secrets.local.disk.main}";
content = with config.lib.disko.gpt; {
content = with disko.gpt; {
type = "table";
format = "gpt";
partitions = [
@ -19,7 +21,7 @@
};
};
};
zpool = with config.lib.disko.zfs; {
zpool = with disko.zfs; {
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
};
};