This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/hosts/shodan/default.nix

99 lines
2.3 KiB
Nix
Raw Normal View History

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config
, lib
, pkgs
, ...
}: {
mySystem.purpose = "Homelab";
mySystem.system.impermanence.enable = true;
mySystem.services = {
openssh.enable = true;
podman.enable = true;
nginx.enable = true;
gatus.enable = true;
homepage.enable = true;
# backrest.enable = true;
plex.enable = true;
tautulli.enable = true;
factorio.freight-forwarding.enable = true; # the factory must grow
2024-04-24 23:52:28 -05:00
searxng.enable = true;
whoogle.enable = true;
redlib.enable = true;
2024-04-24 23:52:28 -05:00
mosquitto.enable = true;
2024-04-25 07:01:37 -05:00
zigbee2mqtt.enable = true;
node-red.enable = true;
home-assistant.enable = true;
openvscode-server.enable = true;
2024-04-24 23:52:28 -05:00
radicale.enable = true;
};
mySystem.security.acme.enable = true;
mySystem.nfs.nas.enable = true;
2024-04-24 05:45:42 -05:00
mySystem.persistentFolder = "/persist";
mySystem.system.motd.networkInterfaces = [ "enp1s0" ];
2024-04-24 07:38:02 -05:00
mySystem.nasFolder = "/mnt/nas";
2024-04-24 18:23:29 -05:00
mySystem.system.resticBackup.local.location = "/mnt/nas/backup/nixos/nixos";
2024-04-24 07:38:02 -05:00
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
# for managing/mounting ntfs
supportedFilesystems = [ "ntfs" ];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
# why not ensure we can memtest workstatons easily?
# TODO check whether this is actually working, cant see it in grub?
grub.memtest86.enable = true;
};
};
2024-04-24 07:38:02 -05:00
networking.hostName = "shodan"; # Define your hostname.
networking.hostId = "0a90730f";
networking.useDHCP = lib.mkDefault true;
fileSystems."/" =
{
2024-04-24 02:39:39 -05:00
device = "rpool/local/root";
fsType = "zfs";
};
fileSystems."/nix" =
{
device = "rpool/local/nix";
fsType = "zfs";
};
fileSystems."/persist" =
{
device = "rpool/safe/persist";
fsType = "zfs";
neededForBoot = true; # for impermanence
};
fileSystems."/boot" =
{
2024-04-24 02:39:39 -05:00
device = "/dev/disk/by-uuid/76FA-78DF";
fsType = "vfat";
2024-04-24 02:39:39 -05:00
options = [ "fmask=0022" "dmask=0022" ];
};
}