2025-02-10 21:55:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2024-04-03 22:17:36 +00:00
|
|
|
let
|
2024-06-29 21:59:27 +00:00
|
|
|
inherit (pkgs.pseudofile) dir;
|
2024-04-03 22:17:36 +00:00
|
|
|
|
|
|
|
svc = config.system.service;
|
|
|
|
|
2025-02-10 21:55:08 +00:00
|
|
|
in
|
|
|
|
rec {
|
2024-04-03 22:17:36 +00:00
|
|
|
imports = [
|
|
|
|
"${modulesPath}/dhcp6c"
|
|
|
|
"${modulesPath}/dnsmasq"
|
|
|
|
"${modulesPath}/firewall"
|
|
|
|
"${modulesPath}/hostapd"
|
|
|
|
"${modulesPath}/network"
|
|
|
|
"${modulesPath}/ssh"
|
|
|
|
"${modulesPath}/mount"
|
2024-04-15 21:15:27 +00:00
|
|
|
"${modulesPath}/mdevd.nix"
|
2024-04-03 22:17:36 +00:00
|
|
|
];
|
|
|
|
|
2025-02-10 21:55:08 +00:00
|
|
|
filesystem = dir { srv = dir { }; };
|
2024-04-03 22:17:36 +00:00
|
|
|
|
|
|
|
kernel = {
|
|
|
|
config = {
|
|
|
|
USB = "y";
|
|
|
|
USB_EHCI_HCD = "y";
|
|
|
|
USB_EHCI_HCD_PLATFORM = "y";
|
|
|
|
USB_OHCI_HCD = "y";
|
|
|
|
USB_OHCI_HCD_PLATFORM = "y";
|
|
|
|
USB_SUPPORT = "y";
|
|
|
|
USB_COMMON = "y";
|
|
|
|
USB_STORAGE = "y";
|
|
|
|
USB_STORAGE_DEBUG = "n";
|
|
|
|
USB_UAS = "y";
|
|
|
|
USB_ANNOUNCE_NEW_DEVICES = "y";
|
|
|
|
SCSI = "y";
|
|
|
|
BLK_DEV_SD = "y";
|
|
|
|
USB_PRINTER = "y";
|
|
|
|
MSDOS_PARTITION = "y";
|
|
|
|
EFI_PARTITION = "y";
|
|
|
|
EXT4_FS = "y";
|
|
|
|
EXT4_USE_FOR_EXT2 = "y";
|
|
|
|
FS_ENCRYPTION = "y";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rootfsType = "jffs2";
|
|
|
|
hostname = "inout";
|
|
|
|
|
2024-04-17 11:59:13 +00:00
|
|
|
services.mount_backup_disk = svc.mount.build {
|
|
|
|
partlabel = "backup-disk";
|
|
|
|
mountpoint = "/srv";
|
|
|
|
fstype = "ext4";
|
|
|
|
};
|
2024-04-03 22:17:36 +00:00
|
|
|
}
|