parent
817aa75f84
commit
e06cc202a8
25 changed files with 529 additions and 275 deletions
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ in
|
|||
};
|
||||
swap = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
default = true;
|
||||
};
|
||||
zram = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue