config/hosts/noximilien/default.nix

134 lines
4.7 KiB
Nix
Raw Normal View History

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 = [
./hardware-configuration.nix
2023-06-24 19:11:49 +02:00
../../profiles/auto-upgrade.nix
2023-07-19 21:59:13 +02:00
../../profiles/upgrade-diff.nix
2023-07-04 16:28:27 +02:00
../../profiles/sshd.nix
2023-07-04 23:44:08 +02:00
../../profiles/podman.nix
2024-01-27 03:47:28 +01:00
../../profiles/vpn-pbsds/headscale.nix # opens port 3478
../../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-02-25 15:43:54 +01:00
../../profiles/mounts/fridge-nfs.nix
2023-03-12 05:14:28 +01:00
../../profiles/shell/base.nix
../../profiles/shell/archives.nix
../../profiles/shell/nix-utils.nix
2023-07-19 23:02:05 +02:00
#../../profiles/shell/binfmt-emu.nix # qemu won't compile...
2023-03-12 05:14:28 +01: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
../../profiles/http/services/rss-bridge.nix
2024-02-01 01:25:42 +01:00
#../../profiles/http/services/jellyfin.nix
../../profiles/http/services/plex.nix
2024-02-01 02:06:03 +01: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
../../profiles/http/services/netdata.nix
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
../../profiles/http/services/microbin.nix
#../../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
../../profiles/http/services/thelounge.nix
../../profiles/http/services/vaultwarden.nix
../../profiles/http/services/webdav-zotero.nix
#../../profiles/http/services/convos.nix
#../../profiles/http/services/cryptpad.nix
#../../profiles/http/services/galene.nix
#../../profiles/http/services/graphana.nix
../../profiles/http/services/hedgedoc.nix
#../../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
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
../../profiles/http/docs/linux-docs.nix
../../profiles/http/docs/programs.nix
../../profiles/http/docs/yagcd.nix
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
2024-01-26 21:45:22 +01:00
#../../profiles/http/services/trivial-gradios
2023-06-11 10:12:42 +02:00
#../../profiles/code-remote # TODO: move into web? services?
../../profiles/domeneshop-dyndns
2023-03-12 05:14:28 +01:00
../../profiles/remote-builders
../../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
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;
#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;
}