some incomplete homelab config + scans

This commit is contained in:
Satria 2026-02-27 19:37:51 +07:00
commit db6045113d
7 changed files with 48 additions and 8 deletions

30
modules/scans/homelab.nix Normal file
View file

@ -0,0 +1,30 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e33ab472-e518-4b4d-89d1-d75cfecb9f06";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/880C-9F0A";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -0,0 +1,3 @@
{ ... }: {
}

View file

@ -0,0 +1,3 @@
{ ... }: {
}

View file

@ -4,7 +4,7 @@
enable = true;
virtualHosts."cdn" = {
listen = [{ ip = "*"; port = 3000; }];
documentRoot = "/srv/dev-disk-by-uuid-f1ee1d17-e852-4e02-ae86-eaf6116a2aeb/NAS";
documentRoot = "/mnt/share";
extraConfig = ''
Options +Indexes +FollowSymLinks
Require all granted
@ -22,7 +22,7 @@
"server min protocol" = "SMB2_02";
};
"NAS" = {
path = "/srv/dev-disk-by-uuid-f1ee1d17-e852-4e02-ae86-eaf6116a2aeb/NAS/";
path = "/mnt/share";
browseable = "yes";
"read only" = "no";
"create mask" = "0664";

View file

@ -2,8 +2,8 @@
imports = [
./homelab/share.nix
./homelab/dns.nix
./homelab/git.nix
./homelab/idp.nix
./base.nix
];
services.openssh.enable = true;
}