nixos-config/machines/hitagi/configuration.nix

78 lines
1.5 KiB
Nix
Raw Normal View History

{ 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 = {
games = {
enable = true;
performanceIndex = 8;
};
gui.enable = true;
media-proxy.enable = true;
mullvad.enable = true;
restic.system = {
enable = true;
uploadLimit = 1500;
extraPaths = [
"/data"
];
};
unfree.allowSoftware = true;
wireguard.home.enable = true;
2020-12-05 13:48:06 +01:00
};
virtualisation.libvirtd = {
enable = true;
qemu.package = pkgs.qemu_kvm;
};
2021-01-20 16:31:59 +01:00
2020-12-31 12:55:20 +01:00
services.tor = {
enable = true;
client.enable = true;
};
services.privoxy = {
enable = true;
enableTor = true;
};
2020-12-31 12:55:20 +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
'';
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" ];
};
2022-12-30 19:52:58 +01:00
networking.hostName = "hitagi";
system.stateVersion = "20.03";
2022-05-21 17:42:32 +02:00
programs.corectrl.enable = true;
2020-10-17 23:18:22 +02:00
}