2024-06-05 13:28:56 +02:00
|
|
|
{ inputs, config, pkgs, ... }:
|
2024-06-03 01:00:53 +02:00
|
|
|
|
2024-06-02 16:36:56 +02:00
|
|
|
{
|
2024-06-05 13:28:56 +02:00
|
|
|
# AMD CPU
|
|
|
|
boot.blacklistedKernelModules = [ "k10temp" ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
|
2024-06-05 13:57:00 +02:00
|
|
|
boot.kernelModules = [ "zenpower amd_pstate=active" ];
|
2024-06-05 13:28:56 +02:00
|
|
|
|
|
|
|
# AMD CPU & GPU
|
2024-06-05 13:57:00 +02:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2024-06-03 01:00:53 +02:00
|
|
|
services.pcscd.enable = true;
|
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
2024-06-05 14:31:58 +02:00
|
|
|
services.logind.extraConfig = ''HandlePowerKey=suspend'';
|
2024-06-03 02:00:07 +02:00
|
|
|
|
2024-06-03 16:02:50 +02:00
|
|
|
# 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.
|
2024-06-03 16:01:31 +02:00
|
|
|
|
2024-06-03 16:02:50 +02:00
|
|
|
networking.wg-quick.interfaces = {
|
|
|
|
wg0 = {
|
|
|
|
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
|
|
|
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
2024-06-04 22:13:24 +02:00
|
|
|
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
2024-06-03 16:02:50 +02:00
|
|
|
listenPort = 51820;
|
|
|
|
peers = [{
|
|
|
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
|
|
|
allowedIPs = [ "10.0.0.1/8" ];
|
|
|
|
endpoint = "192.168.1.1:13231";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
fileSystems."/home/server" = {
|
|
|
|
device = "192.168.1.2:/home/server";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
|
|
};
|
|
|
|
fileSystems."/home/user/Workspace" = {
|
|
|
|
device = "192.168.1.2:/home/server/Workspace";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
|
|
};
|
|
|
|
fileSystems."/home/user/Documents" = {
|
|
|
|
device = "192.168.1.2:/home/server/Storage/Thomas/Documents";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
|
|
};
|
|
|
|
fileSystems."/home/user/Pictures" = {
|
|
|
|
device = "192.168.1.2:/home/server/Storage/Thomas/Pictures";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
|
|
};
|
|
|
|
fileSystems."/home/user/Videos" = {
|
|
|
|
device = "192.168.1.2:/home/server/Storage/Thomas/Videos";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
|
|
};
|
2024-06-02 16:36:56 +02:00
|
|
|
}
|