3/20
All checks were successful
/ check (push) Successful in 3m10s
/ nvim-bundle (nvim) (push) Successful in 17m44s

This commit is contained in:
iofq 2026-03-07 12:05:37 -06:00
parent 817aa75f84
commit 235f903c1d
25 changed files with 523 additions and 269 deletions

View file

@ -1,5 +1,14 @@
{ host, pkgs, config, lib, ...}:
let cfg = config.machine.net; in {
{
host,
pkgs,
config,
lib,
...
}:
let
cfg = config.machine.net;
in
{
options.machine.net = {
enable = lib.mkOption {
type = lib.types.bool;
@ -16,7 +25,7 @@ let cfg = config.machine.net; in {
};
ports = lib.mkOption {
type = lib.types.listOf lib.types.int;
default = [22];
default = [ 22 ];
};
};
tailscale = lib.mkOption {
@ -85,21 +94,25 @@ let cfg = config.machine.net; in {
};
};
systemd = {
mounts = [{
type = "nfs";
mountConfig = {
Options = "noatime";
};
what = "consensus:/rice";
where = "/mnt/rice";
}];
automounts = [{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/rice";
}];
mounts = [
{
type = "nfs";
mountConfig = {
Options = "noatime";
};
what = "zen:/tank/home";
where = "/mnt/home";
}
];
automounts = [
{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/home";
}
];
};
};
}

View file

@ -19,7 +19,7 @@ in
};
swap = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
};
zram = lib.mkOption {
type = lib.types.bool;