2023-02-25 04:39:30 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
2023-03-01 02:21:24 +01:00
|
|
|
# Bootloader
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
boot.loader.grub.useOSProber = true;
|
2023-02-25 04:39:30 +01:00
|
|
|
imports = [
|
2023-02-26 02:46:35 +01:00
|
|
|
./hardware-configuration.nix
|
2023-07-04 16:28:27 +02:00
|
|
|
../../profiles/sshd.nix
|
2024-04-16 06:49:45 +02:00
|
|
|
#../../profiles/oci/podman.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2024-04-17 23:29:38 +02:00
|
|
|
#./yt-dlp-archive.nix
|
|
|
|
|
2024-05-31 00:39:40 +02:00
|
|
|
#../../profiles/vpn-pbsds/headscale.nix # opens port 3478
|
2024-01-27 03:47:28 +01:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
../../users/pbsds
|
|
|
|
../../users/jornane
|
|
|
|
|
2024-01-11 00:36:51 +01:00
|
|
|
../../profiles/mounts/freon-nfs.nix
|
2023-03-12 05:14:28 +01:00
|
|
|
../../profiles/mounts/reidun-nfs.nix
|
2023-12-10 06:03:49 +01:00
|
|
|
../../profiles/mounts/meconium-zfs.nix
|
2024-05-31 00:39:40 +02:00
|
|
|
#../../profiles/mounts/fridge-nfs.nix # TODO: fix
|
2023-03-12 05:14:28 +01:00
|
|
|
|
2024-03-26 18:27:48 +01:00
|
|
|
../../profiles/shell.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2024-05-31 00:39:40 +02:00
|
|
|
#../../profiles/services/tmate-server.nix # opens port 42244
|
2023-03-03 21:42:29 +01:00
|
|
|
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http # enables nginx+acme, defines mkDomain
|
|
|
|
../../profiles/http/index
|
|
|
|
../../profiles/http/services/cinny.nix
|
|
|
|
../../profiles/http/services/element.nix
|
|
|
|
../../profiles/http/services/flexget.nix
|
|
|
|
../../profiles/http/services/gitea.nix
|
|
|
|
#../../profiles/http/services/hydra.nix
|
|
|
|
../../profiles/http/services/invidious.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/services/rss-bridge.nix # TODO: move out of home net
|
2024-02-01 01:25:42 +01:00
|
|
|
#../../profiles/http/services/jellyfin.nix
|
|
|
|
../../profiles/http/services/plex.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/services/tautulli.nix # will run a first-time-setup where admin account is made
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http/services/libreddit.nix
|
|
|
|
#../../profiles/http/services/mattermost.nix
|
|
|
|
#../../profiles/http/services/navidrome.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/services/netdata.nix # put behind firewall
|
2024-02-01 02:06:03 +01:00
|
|
|
#../../profiles/http/services/nitter.nix
|
2024-01-26 21:45:22 +01:00
|
|
|
#../../profiles/http/services/ntopng.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/services/microbin.nix # TODO: move out of home net
|
2024-01-26 21:45:22 +01:00
|
|
|
#../../profiles/http/services/owncast.nix
|
|
|
|
#../../profiles/http/services/paperless.nix
|
|
|
|
../../profiles/http/services/polaris.nix
|
|
|
|
#../../profiles/http/services/resilio.nix
|
|
|
|
../../profiles/http/services/roundcube.nix
|
2024-04-16 06:49:45 +02:00
|
|
|
#../../profiles/http/services/snappymail.nix # WIP
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http/services/thelounge.nix
|
|
|
|
../../profiles/http/services/vaultwarden.nix
|
|
|
|
../../profiles/http/services/webdav-zotero.nix
|
2024-04-16 06:49:45 +02:00
|
|
|
#../../profiles/http/services/garage/gunktrunk.nix
|
2024-01-26 21:45:22 +01:00
|
|
|
#../../profiles/http/services/convos.nix
|
|
|
|
#../../profiles/http/services/cryptpad.nix
|
|
|
|
#../../profiles/http/services/galene.nix
|
|
|
|
#../../profiles/http/services/graphana.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/services/hedgedoc.nix # TODO: move out of home net
|
2024-01-26 21:45:22 +01:00
|
|
|
#../../profiles/http/services/home-assistant.nix
|
|
|
|
#../../profiles/http/services/jitsi-meet.nix
|
|
|
|
#../../profiles/http/services/kukkee
|
|
|
|
#../../profiles/http/services/matrix-synapse.nix
|
|
|
|
#../../profiles/http/services/shlink.nix
|
|
|
|
#../../profiles/http/services/sourcegraph.nix
|
|
|
|
#../../profiles/http/services/censordodge.nix
|
|
|
|
#../../profiles/http/services/openspeedtest.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2024-04-16 06:49:45 +02:00
|
|
|
/**/
|
|
|
|
# TODO: move to brumle
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http/docs
|
|
|
|
../../profiles/http/docs/pdoc.nix
|
|
|
|
../../profiles/http/docs/python-docs.nix
|
|
|
|
../../profiles/http/docs/nixpkgs.nix
|
|
|
|
../../profiles/http/docs/home-manager.nix
|
2024-05-30 20:45:03 +02:00
|
|
|
#../../profiles/http/docs/linux-docs.nix # TODO: fix
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http/docs/programs.nix
|
|
|
|
../../profiles/http/docs/yagcd.nix
|
2024-04-16 06:49:45 +02:00
|
|
|
/**/
|
2023-02-26 03:53:55 +01:00
|
|
|
|
2024-02-01 02:06:03 +01:00
|
|
|
#../../profiles/http/sites/linktree-pbsds.nix # github bby!! TODO: remove
|
2024-01-26 21:45:22 +01:00
|
|
|
../../profiles/http/sites/refleksjon-no.nix
|
|
|
|
../../profiles/http/sites/roroslyd-no.nix
|
|
|
|
../../profiles/http/sites/kuklefse.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2024-01-26 21:45:22 +01:00
|
|
|
#../../profiles/http/services/trivial-gradios
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2023-06-11 10:12:42 +02:00
|
|
|
#../../profiles/code-remote # TODO: move into web? services?
|
|
|
|
../../profiles/domeneshop-dyndns
|
2024-07-10 00:34:38 +02:00
|
|
|
/* ../../profiles/remote-builders.nix */
|
2023-02-26 02:46:35 +01:00
|
|
|
../../profiles/autossh-reverse-tunnels
|
|
|
|
#../../profiles/xrdp
|
2023-02-25 04:39:30 +01:00
|
|
|
];
|
2023-06-23 21:14:55 +02:00
|
|
|
services.domeneshop-updater.targets = [
|
2024-02-01 02:06:03 +01:00
|
|
|
#"pbsds.net" # github bby!! TODO: remove
|
2023-06-23 21:14:55 +02:00
|
|
|
"olavtr.pbsds.net"
|
2023-06-26 21:03:25 +02:00
|
|
|
"kuklef.se"
|
2023-06-23 21:14:55 +02:00
|
|
|
];
|
2023-02-25 04:39:30 +01:00
|
|
|
|
2023-12-10 06:03:49 +01:00
|
|
|
networking.hostId = "e1ffd469"; # needed for zfs: head -c 8 /etc/machine-id
|
|
|
|
|
2024-05-31 00:39:40 +02:00
|
|
|
#networking.wireguard.interfaces."wg0".ips = [ "172.22.48.3/24" ]; # fyrkat
|
2024-02-25 16:04:18 +01:00
|
|
|
|
2024-07-04 02:16:29 +02:00
|
|
|
sops.secrets.flexget.sopsFile = ../../secrets/${config.networking.hostName}.yaml;
|
|
|
|
|
2023-03-12 05:14:28 +01:00
|
|
|
# TODO: remove? Move to where relevant?
|
2023-02-25 04:39:30 +01:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
/** /
|
|
|
|
(final: prev: {
|
|
|
|
mapcrafter = prev.callPackage /home/pbsds/repos/nixpkgs-mapcrafter/pkgs/tools/games/minecraft/mapcrafter/default.nix { };
|
|
|
|
mapcrafter-world112 = prev.callPackage /home/pbsds/repos/nixpkgs-mapcrafter/pkgs/tools/games/minecraft/mapcrafter/default.nix { world="world112"; };
|
|
|
|
})
|
|
|
|
/**/
|
|
|
|
];
|
|
|
|
|
|
|
|
# Networking
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
#networking.iwd.enable = true
|
|
|
|
networking.interfaces.eno1.ipv4.addresses = [
|
|
|
|
{ address = "192.168.1.9"; prefixLength = 24; }
|
|
|
|
];
|
|
|
|
networking.nameservers = [
|
|
|
|
"192.168.1.254"
|
|
|
|
"8.8.8.8"
|
|
|
|
"1.1.1.1"
|
|
|
|
];
|
|
|
|
networking.defaultGateway = {
|
|
|
|
address = "192.168.1.254";
|
|
|
|
interface = "eno1";
|
|
|
|
};
|
|
|
|
#networking.useDHCP = true;
|
2023-02-26 02:46:35 +01:00
|
|
|
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
|
2023-02-25 04:39:30 +01:00
|
|
|
|
|
|
|
# TODO: remove? Move?
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
}
|