dotfiles/hosts/Aloria/default.nix

74 lines
2.5 KiB
Nix
Raw Normal View History

2024-06-04 23:42:15 +02:00
{ pkgs, ... }:
2024-06-04 22:13:24 +02:00
{
services.pcscd.enable = true;
2024-06-05 01:02:16 +02:00
hardware.opengl.extraPackages = [
pkgs.intel-compute-runtime
pkgs.intel-media-driver
];
2024-06-04 22:13:24 +02:00
services.udev.packages = [ pkgs.yubikey-personalization ];
# Calendar
programs.dconf.enable = true;
services.gnome.evolution-data-server.enable = true;
services.gnome.gnome-online-accounts.enable = true;
services.gnome.gnome-keyring.enable = true;
environment.systemPackages = with pkgs; [ wireguard-tools ];
# Add the server using gnome-online-accounts:
# nix-shell -p gnome.gnome-control-center --run "gnome-control-center"
# Just add the main webdav server and gnome-calendar will automatically pick up all available calendars.
networking.wg-quick.interfaces = {
wg0 = {
2024-06-04 23:42:15 +02:00
address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ];
2024-06-04 22:13:24 +02:00
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
listenPort = 51820;
2024-06-05 01:02:16 +02:00
postUp = "resolvectl dns %i 10.0.0.1; resolvectl domain %i ~thomasave.be;";
2024-06-04 22:13:24 +02:00
peers = [{
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
2024-06-04 23:42:15 +02:00
allowedIPs = [ "10.0.0.1/8" "192.168.1.2/32" ];
2024-06-04 22:13:24 +02:00
endpoint = "h.thomasave.be:13231";
persistentKeepalive = 25;
}];
};
};
2024-06-05 01:02:16 +02:00
networking.wireless = {
enable = true;
environmentFile = "/home/user/.secrets/Wireless/Aloria.env";
networks = {
"The Buttshark" = {
psk = "@THE_BUTTSHARK@";
};
};
};
2024-06-04 22:13:24 +02:00
fileSystems."/home/server" = {
device = "10.1:/home/server";
fsType = "nfs";
2024-06-05 01:17:14 +02:00
options = [ "x-systemd.automount" "x-systemd.mount-timeout=30" "_netdev" "noauto" ];
2024-06-04 22:13:24 +02:00
};
fileSystems."/home/user/Workspace" = {
device = "10.1:/home/server/Workspace";
fsType = "nfs";
2024-06-05 01:17:14 +02:00
options = [ "x-systemd.automount" "x-systemd.mount-timeout=30" "_netdev" "noauto" ];
2024-06-04 22:13:24 +02:00
};
fileSystems."/home/user/Documents" = {
device = "10.1:/home/server/Storage/Thomas/Documents";
fsType = "nfs";
2024-06-05 01:17:14 +02:00
options = [ "x-systemd.automount" "x-systemd.mount-timeout=30" "_netdev" "noauto" ];
2024-06-04 22:13:24 +02:00
};
fileSystems."/home/user/Pictures" = {
device = "10.1:/home/server/Storage/Thomas/Pictures";
fsType = "nfs";
2024-06-05 01:17:14 +02:00
options = [ "x-systemd.automount" "x-systemd.mount-timeout=30" "_netdev" "noauto" ];
2024-06-04 22:13:24 +02:00
};
fileSystems."/home/user/Videos" = {
device = "10.1:/home/server/Storage/Thomas/Videos";
fsType = "nfs";
2024-06-05 01:17:14 +02:00
options = [ "x-systemd.automount" "x-systemd.mount-timeout=30" "_netdev" "noauto" ];
2024-06-04 22:13:24 +02:00
};
}