Compare commits

...
2 Commits
Author SHA1 Message Date
hektor 335c29ddfd feat(tmp): add 'tmp' module
check / lint (push) Successful in 18s
2026-10-24 12:17:58 +02:00
hektor 9fcf5d68e0 feat(zfs): add ZFS module 2026-10-24 12:17:58 +02:00
8 changed files with 49 additions and 30 deletions

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ in
enable = true;
interfaces.eno1 = { inherit (wolInterfaces.eno1) macAddress; };
};
zfs.enable = true;
disko.devices = {
disk.data = {
+1
View File
@@ -67,6 +67,7 @@ in
};
};
taskwarrior.enable = true;
zfs.enable = true;
secrets.nixSigningKey.enable = true;
restic-backup.enable = true;
-11
View File
@@ -1,11 +0,0 @@
{ config, ... }:
{
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = config.host.highRam;
};
}
-18
View File
@@ -1,18 +0,0 @@
{ lib, config, ... }:
let
cfg = config.bootloader;
in
{
options.bootloader.enable = lib.mkEnableOption "system bootloader";
config = lib.mkIf cfg.enable {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = config.host.highRam;
};
};
}
+17
View File
@@ -0,0 +1,17 @@
{ lib, config, ... }:
{
options.bootloader.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.bootloader.enable {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
};
}
-1
View File
@@ -12,7 +12,6 @@
config = {
system.stateVersion = lib.mkDefault "25.05";
boot.zfs.forceImportRoot = lib.mkDefault false;
environment.defaultPackages = lib.mkForce [ ];
environment.pathsToLink = [
+15
View File
@@ -0,0 +1,15 @@
{ lib, config, ... }:
{
options.tmp.enable = lib.mkOption {
default = config.host.highRam;
type = lib.types.bool;
};
config = lib.mkIf config.tmp.enable {
boot.tmp = {
useTmpfs = true;
tmpfsSize = "25%";
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, config, ... }:
{
options.zfs.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.zfs.enable {
boot = {
kernelParams = [ "zfs.zfs_arc_max=12884901888" ];
zfs.forceImportRoot = lib.mkDefault false;
};
};
}