dotfiles/hosts/Kell/default.nix

55 lines
1.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{inputs, pkgs, ...}:
{
services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ];
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=suspend
'';
environment.systemPackages = with pkgs; [
wireguard-tools
];
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" ];
privateKeyFile = "/home/user/.secrets/Wireguard/wg0.key";
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" ];
};
}