This commit is contained in:
Sicheng Pan 2026-02-16 22:00:15 -08:00
parent c47db92a88
commit e7c56b4d22
Signed by: macronova
GPG key ID: CE969670FB4B4A56
27 changed files with 107 additions and 202 deletions

View file

@ -3,12 +3,9 @@
# and in the NixOS manual (accessible by running `nixos-help`).
{...}: {
# Configure boot loader
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
tmp.cleanOnBoot = true;
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
# This value determines the NixOS release from which the default

View file

@ -1,9 +1,9 @@
# Home media server — hosts Jellyfin, Forgejo, Matrix Conduit, and media management services
{inputs, ...}: {
imports = with inputs; [
disko.nixosModules.default
hardware.nixosModules.common-cpu-amd
hardware.nixosModules.common-cpu-amd-pstate
../../common
./conduit.nix
./configuration.nix
./disko.nix
@ -12,7 +12,6 @@
./jellyfin.nix
./network.nix
./syncthing.nix
./tailscale.nix
./zfs.nix
];
}

View file

@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
disko.devices = {
# Partition the physical disk
disk.storage = {
@ -29,20 +29,8 @@
# Construct the primary zfs pool for this system.
zpool.zroot = {
type = "zpool";
options = {
ashift = "12";
autotrim = "on";
listsnapshots = "on";
};
rootFsOptions = {
acltype = "posix";
atime = "off";
compression = "zstd";
dnodesize = "auto";
mountpoint = "none";
normalization = "formD";
xattr = "sa";
};
options = config.constants.zfsPoolOptions;
rootFsOptions = config.constants.zfsRootFsOptions;
datasets = {
# Encrypt main dataset
main = {

View file

@ -6,8 +6,11 @@
enable = true;
wifi.backend = "iwd";
};
nftables.enable = true;
wireless.iwd.enable = true;
};
services.openssh.enable = true;
services = {
openssh.enable = true;
tailscale.useRoutingFeatures = "both";
};
}

View file

@ -1,7 +0,0 @@
{...}: {
services.tailscale = {
enable = true;
port = 25555;
useRoutingFeatures = "both";
};
}

View file

@ -1,6 +1,4 @@
{...}: {
boot.loader.grub.zfsSupport = true;
services.zfs = {
autoScrub.enable = true;
trim.enable = true;