77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
|
{ config, pkgs, lib, ... }: {
|
||
|
|
||
|
imports = [
|
||
|
|
||
|
./hardware-configuration.nix
|
||
|
../../system/server
|
||
|
./disko-config.nix
|
||
|
|
||
|
./packages.nix
|
||
|
./tinc.nix
|
||
|
|
||
|
#./mail-fetcher.nix
|
||
|
#./hass.nix
|
||
|
#./zigbee2mqtt.nix
|
||
|
#./syncthing.nix
|
||
|
#./wifi-access-point.nix
|
||
|
|
||
|
#./borg.nix
|
||
|
#./taskwarrior-pushover.nix
|
||
|
#./jellyfin.nix
|
||
|
#./wireguard.nix
|
||
|
|
||
|
# logging
|
||
|
./loki.nix
|
||
|
./loki-promtail.nix
|
||
|
./prometheus.nix
|
||
|
./grafana.nix
|
||
|
./telegraf.nix
|
||
|
|
||
|
#./home-display.nix
|
||
|
#./tdarr.nix
|
||
|
|
||
|
];
|
||
|
|
||
|
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
boot.tmpOnTmpfs = true; # make /tmp a tmpfs (performance!)
|
||
|
|
||
|
boot.supportedFilesystems = [ "zfs" ];
|
||
|
# head -c4 /dev/urandom | od -A none -t x4
|
||
|
networking.hostId = "e439b116";
|
||
|
boot.zfs.extraPools = [ "zraid" ];
|
||
|
|
||
|
sops.defaultSopsFile = ../../secrets/chungus.yaml;
|
||
|
|
||
|
networking.hostName = "chungus";
|
||
|
|
||
|
programs.custom. zsh.enable = true;
|
||
|
users.users.root.shell = pkgs.zsh;
|
||
|
|
||
|
# todo : rename to component.init.ssh
|
||
|
#configuration.init-ssh = {
|
||
|
# enable = "enabled";
|
||
|
# kernelModules = [ "e1000e" ];
|
||
|
#};
|
||
|
|
||
|
# just enable lan
|
||
|
#networking.dhcpcd.allowInterfaces = [ "enp0s25" ];
|
||
|
|
||
|
# nix-shell -p speedtest_cli --run speedtest
|
||
|
#configuration.fireqos = {
|
||
|
# enable = false;
|
||
|
# interface = "enp0s25";
|
||
|
# input = 200000;
|
||
|
# output = 2000;
|
||
|
# balance = false;
|
||
|
#};
|
||
|
|
||
|
services.printing.enable = false;
|
||
|
services.smartd.enable = true;
|
||
|
|
||
|
#home-manager.users.mailUser.home.stateVersion = "22.11";
|
||
|
|
||
|
}
|
||
|
|