61 lines
2.0 KiB
Nix
61 lines
2.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
imports =
|
|
[ ../physical/3950x.nix
|
|
../roles/workstation.nix
|
|
];
|
|
|
|
nixpkgs.overlays = [ (import (builtins.fetchTarball https://github.com/colemickens/nixpkgs-wayland/archive/master.tar.gz)) ];
|
|
system.stateVersion = "19.09";
|
|
|
|
networking.wireguard.interfaces = {
|
|
wg-lumi = {
|
|
privateKeyFile = "/home/yorick/engineering/lumi/secrets/devel/vpn/wg/workstations.yorick-homepc.key";
|
|
ips = [ "10.109.0.18" ];
|
|
peers = [ {
|
|
publicKey = "6demp+PX2XyVoMovDj4xHQ2ZHKoj4QAF8maWpjcyzzI=";
|
|
endpoint = "wg.lumi.guide:31727";
|
|
allowedIPs = [ "10.96.0.0/12" "10.0.0.0/17" ];
|
|
}];
|
|
postSetup = "ip link set dev wg-lumi mtu 1408";
|
|
};
|
|
};
|
|
environment.systemPackages = [ pkgs.spice_gtk ];
|
|
security.wrappers.spice-client-glib-usb-acl-helper.source = "${pkgs.spice_gtk}/bin/spice-client-glib-usb-acl-helper";
|
|
virtualisation.virtualbox.host.enable = lib.mkForce true;
|
|
virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
users.users.yorick.extraGroups = [ "vboxusers" ];
|
|
|
|
# users.users.pie = {
|
|
# isNormalUser = true;
|
|
# openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDpj2GrPpXtAp9Is0wDyQNl8EQnBiITkSAjhf7EjIqX" ];
|
|
# };
|
|
# services.nfs.server = {
|
|
# enable = true;
|
|
# exports = ''
|
|
# /export 10.40.0.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
|
|
# /export/nfs/client1 10.40.0.0/24(insecure,rw,sync,no_subtree_check,crossmnt,all_squash,anonuid=0,anongid=0,no_root_squash)
|
|
# /export/nfs/client1/nix 10.40.0.0/24(insecure,ro,sync,no_subtree_check,crossmnt)
|
|
# '';
|
|
# };
|
|
|
|
services.znapzend = {
|
|
enable = true;
|
|
pure = true;
|
|
features = {
|
|
zfsGetType = true;
|
|
sendRaw = true;
|
|
};
|
|
zetup = {
|
|
"rpool/home-enc" = {
|
|
plan = "1d=>1h,1m=>1w";
|
|
destinations.frumar = {
|
|
host = "root@192.168.178.37";
|
|
dataset = "frumar-new/backup/blackadder";
|
|
plan = "1w=>1d,1y=>1w,10y=>1m,50y=>1y";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|