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-06-23 21:45:16 +02:00
|
|
|
../../hardware/gpu/intel.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
|
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
|
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-02-26 02:46:35 +01:00
|
|
|
|
2023-03-12 05:14:28 +01:00
|
|
|
../../profiles/services/tmate-server.nix # opens port 42244
|
2023-03-03 21:42:29 +01:00
|
|
|
|
2023-03-12 05:14:28 +01:00
|
|
|
../../profiles/web # enables nginx+acme, defines mkDomain
|
2023-02-26 02:46:35 +01:00
|
|
|
../../profiles/web/index
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/cinny.nix
|
|
|
|
../../profiles/web/services/element.nix
|
|
|
|
../../profiles/web/services/flexget.nix
|
|
|
|
../../profiles/web/services/gitea.nix
|
2023-06-11 11:14:21 +02:00
|
|
|
#../../profiles/web/services/hydra.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/invidious.nix
|
2023-08-21 02:25:43 +02:00
|
|
|
../../profiles/web/services/rss-bridge.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/jellyfin.nix
|
|
|
|
../../profiles/web/services/libreddit.nix
|
2023-06-11 11:14:21 +02:00
|
|
|
#../../profiles/web/services/mattermost.nix
|
|
|
|
#../../profiles/web/services/navidrome.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/netdata.nix
|
|
|
|
../../profiles/web/services/nitter.nix
|
2023-06-11 11:14:21 +02:00
|
|
|
#../../profiles/web/services/ntopng.nix
|
2023-06-26 21:03:25 +02:00
|
|
|
../../profiles/web/services/microbin.nix
|
2023-06-23 21:45:16 +02:00
|
|
|
#../../profiles/web/services/owncast.nix
|
2023-06-11 11:14:21 +02:00
|
|
|
#../../profiles/web/services/paperless.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/polaris.nix
|
2023-06-11 11:14:21 +02:00
|
|
|
#../../profiles/web/services/resilio.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/services/roundcube.nix
|
|
|
|
../../profiles/web/services/thelounge.nix
|
|
|
|
../../profiles/web/services/vaultwarden.nix
|
|
|
|
../../profiles/web/services/webdav-zotero.nix
|
|
|
|
#../../profiles/web/services/convos.nix
|
|
|
|
#../../profiles/web/services/cryptpad.nix
|
|
|
|
#../../profiles/web/services/galene.nix
|
|
|
|
#../../profiles/web/services/graphana.nix
|
2023-10-15 23:42:36 +02:00
|
|
|
../../profiles/web/services/hedgedoc.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
#../../profiles/web/services/home-assistant.nix
|
|
|
|
#../../profiles/web/services/jitsi-meet.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
#../../profiles/web/services/kukkee
|
2023-03-16 22:29:24 +01:00
|
|
|
#../../profiles/web/services/matrix-synapse.nix
|
|
|
|
#../../profiles/web/services/shlink.nix
|
|
|
|
#../../profiles/web/services/sourcegraph.nix
|
|
|
|
#../../profiles/web/services/censordodge.nix
|
|
|
|
#../../profiles/web/services/openspeedtest.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
2023-02-26 03:53:55 +01:00
|
|
|
../../profiles/web/docs
|
2023-02-26 06:11:55 +01:00
|
|
|
../../profiles/web/docs/pdoc.nix
|
|
|
|
../../profiles/web/docs/python-docs.nix
|
|
|
|
../../profiles/web/docs/nixpkgs.nix
|
2023-02-28 04:57:58 +01:00
|
|
|
../../profiles/web/docs/home-manager.nix
|
2023-02-26 06:11:55 +01:00
|
|
|
../../profiles/web/docs/linux-docs.nix
|
2023-02-28 04:57:58 +01:00
|
|
|
../../profiles/web/docs/programs.nix
|
2023-02-26 06:11:55 +01:00
|
|
|
../../profiles/web/docs/yagcd.nix
|
2023-02-26 03:53:55 +01:00
|
|
|
|
2023-10-28 07:27:37 +02:00
|
|
|
#../../profiles/web/sites/linktree-pbsds.nix
|
2023-03-16 22:29:24 +01:00
|
|
|
../../profiles/web/sites/refleksjon-no.nix
|
|
|
|
../../profiles/web/sites/roroslyd-no.nix
|
2023-08-27 03:32:02 +02:00
|
|
|
../../profiles/web/sites/kuklefse.nix
|
2023-02-26 02:46:35 +01:00
|
|
|
|
|
|
|
#../../profiles/web/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
|
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 = [
|
2023-10-28 16:36:06 +02:00
|
|
|
#"pbsds.net"
|
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;
|
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
|
|
|
|
|
|
|
# Installed system packages
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
cage
|
2023-03-12 05:14:28 +01:00
|
|
|
weston
|
2023-02-25 04:39:30 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# TODO: remove? Move?
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
}
|