2021-06-09 15:22:17 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2020-10-17 23:18:22 +02:00
|
|
|
|
|
|
|
{
|
2020-12-05 16:05:26 +01:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
|
|
|
../../users/simon
|
|
|
|
];
|
2020-10-17 23:18:22 +02:00
|
|
|
|
2020-12-05 13:48:06 +01:00
|
|
|
sbruder = {
|
2021-07-26 20:43:52 +02:00
|
|
|
games = {
|
|
|
|
enable = true;
|
|
|
|
performanceIndex = 8;
|
|
|
|
};
|
2020-12-05 15:44:58 +01:00
|
|
|
gui.enable = true;
|
2020-12-31 15:44:24 +01:00
|
|
|
media-proxy.enable = true;
|
2021-05-31 23:02:11 +02:00
|
|
|
mullvad.enable = true;
|
2021-02-28 12:21:04 +01:00
|
|
|
restic.system = {
|
2020-12-21 13:09:25 +01:00
|
|
|
enable = true;
|
2022-08-25 23:21:35 +02:00
|
|
|
uploadLimit = 1500;
|
2020-12-21 13:09:25 +01:00
|
|
|
extraPaths = [
|
|
|
|
"/data"
|
|
|
|
];
|
|
|
|
};
|
2021-01-03 16:28:35 +01:00
|
|
|
unfree.allowSoftware = true;
|
2021-02-20 19:03:40 +01:00
|
|
|
wireguard.home.enable = true;
|
2020-12-05 13:48:06 +01:00
|
|
|
};
|
|
|
|
|
2021-08-28 11:23:57 +02:00
|
|
|
virtualisation.libvirtd = {
|
|
|
|
enable = true;
|
2021-12-01 17:56:53 +01:00
|
|
|
qemu.package = pkgs.qemu_kvm;
|
2021-08-28 11:23:57 +02:00
|
|
|
};
|
2021-01-20 16:31:59 +01:00
|
|
|
|
2020-12-31 12:55:20 +01:00
|
|
|
services.tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
|
|
|
};
|
2021-05-24 22:12:33 +02:00
|
|
|
services.privoxy = {
|
|
|
|
enable = true;
|
|
|
|
enableTor = true;
|
|
|
|
};
|
2020-12-31 12:55:20 +01:00
|
|
|
|
2021-08-11 10:52:49 +02:00
|
|
|
services.samba = {
|
|
|
|
enable = true;
|
|
|
|
securityType = "user";
|
|
|
|
extraConfig = ''
|
|
|
|
interfaces = 192.168.122.1
|
|
|
|
bind interfaces only = yes
|
|
|
|
map to guest = bad user
|
|
|
|
load printers = no
|
|
|
|
printing = bsd
|
|
|
|
disable spoolss = yes
|
|
|
|
usershare max shares = 0
|
|
|
|
acl allow execute always = True
|
|
|
|
'';
|
|
|
|
shares = {
|
|
|
|
qemu = {
|
|
|
|
path = "/data/cache/win10/shared";
|
|
|
|
browseable = "yes";
|
|
|
|
"read only" = "no";
|
|
|
|
"guest ok" = "yes";
|
|
|
|
"force user" = "simon";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
2022-06-09 23:29:57 +02:00
|
|
|
systemd.services.samba-nmbd = {
|
|
|
|
wants = [ "libvirtd.service" ];
|
|
|
|
after = [ "libvirtd.service" ];
|
|
|
|
};
|
2021-08-11 10:52:49 +02:00
|
|
|
|
2022-12-30 19:52:58 +01:00
|
|
|
networking.hostName = "hitagi";
|
2021-01-31 12:11:39 +01:00
|
|
|
|
|
|
|
system.stateVersion = "20.03";
|
2020-10-17 23:18:22 +02:00
|
|
|
}
|