2024-01-06 01:19:35 +01:00
|
|
|
# SPDX-FileCopyrightText: 2020-2024 Simon Bruder <simon@sbruder.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2021-09-30 07:32:03 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
|
|
|
../../users/simon
|
|
|
|
];
|
|
|
|
|
|
|
|
sbruder = {
|
|
|
|
games = {
|
|
|
|
enable = true;
|
|
|
|
performanceIndex = 8;
|
|
|
|
};
|
|
|
|
gui.enable = true;
|
|
|
|
media-proxy.enable = true;
|
|
|
|
mullvad.enable = true;
|
2022-08-25 23:21:35 +02:00
|
|
|
restic.system = {
|
|
|
|
enable = true;
|
2023-10-07 22:32:10 +02:00
|
|
|
qos = true;
|
2022-08-25 23:21:35 +02:00
|
|
|
};
|
2021-09-30 07:32:03 +02:00
|
|
|
unfree.allowSoftware = true;
|
|
|
|
wireguard.home.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.libvirtd = {
|
|
|
|
enable = true;
|
2021-12-01 17:56:53 +01:00
|
|
|
qemu.package = pkgs.qemu_kvm;
|
2021-09-30 07:32:03 +02:00
|
|
|
};
|
|
|
|
|
2021-11-02 11:13:59 +01: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
|
2024-01-06 00:08:00 +01:00
|
|
|
|
|
|
|
server min protocol = NT1
|
|
|
|
ntlm auth = ntlmv1-permitted
|
2021-11-02 11:13:59 +01:00
|
|
|
'';
|
|
|
|
shares = {
|
|
|
|
qemu = {
|
|
|
|
path = "/home/simon/.cache/vm-share";
|
|
|
|
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-11-02 11:13:59 +01:00
|
|
|
|
2021-09-30 07:32:03 +02:00
|
|
|
services.tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
|
|
|
};
|
|
|
|
services.privoxy = {
|
|
|
|
enable = true;
|
|
|
|
enableTor = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "mayushii";
|
|
|
|
|
|
|
|
system.stateVersion = "21.05";
|
2023-04-27 21:08:38 +02:00
|
|
|
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
2021-09-30 07:32:03 +02:00
|
|
|
}
|