Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
335c29ddfd | ||
|
|
9fcf5d68e0 |
No files matched your search
@@ -91,6 +91,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
interfaces.eno1 = { inherit (wolInterfaces.eno1) macAddress; };
|
interfaces.eno1 = { inherit (wolInterfaces.eno1) macAddress; };
|
||||||
};
|
};
|
||||||
|
zfs.enable = true;
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.data = {
|
disk.data = {
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
taskwarrior.enable = true;
|
taskwarrior.enable = true;
|
||||||
|
zfs.enable = true;
|
||||||
|
|
||||||
secrets.nixSigningKey.enable = true;
|
secrets.nixSigningKey.enable = true;
|
||||||
restic-backup.enable = true;
|
restic-backup.enable = true;
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{ config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
tmp.useTmpfs = config.host.highRam;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
system.stateVersion = lib.mkDefault "25.05";
|
system.stateVersion = lib.mkDefault "25.05";
|
||||||
boot.zfs.forceImportRoot = lib.mkDefault false;
|
|
||||||
|
|
||||||
environment.defaultPackages = lib.mkForce [ ];
|
environment.defaultPackages = lib.mkForce [ ];
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
|
|||||||
@@ -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%";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user