nix-conf/systems/benzaiten/default.nix

119 lines
2.3 KiB
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
pkgs,
config,
nixos-hardware,
...
}:
2023-09-08 14:36:39 +02:00
{
imports = [
./hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
2024-05-01 09:58:21 +02:00
#nixos-hardware.nixosModules.common-gpu-nvidia
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-hdd
];
2023-09-08 14:36:39 +02:00
2023-12-29 16:43:40 +01:00
jopejoe1 = {
2024-07-10 23:02:54 +02:00
audio = {
enable = true;
};
2023-12-29 16:43:40 +01:00
bluetooth.enable = true;
local.enable = true;
nix.enable = true;
2024-05-01 08:58:36 +02:00
plasma.enable = true;
2024-01-13 18:01:23 +01:00
user = {
jopejoe1.enable = true;
root.enable = true;
};
2024-04-02 20:23:02 +02:00
printing.enable = true;
2024-01-11 00:19:11 +01:00
ssh.enable = true;
2024-03-08 18:59:28 +01:00
keyboard = {
enable = true;
layout = "de";
};
2024-05-01 09:58:21 +02:00
gui.enable = true;
zerotierone.enable = true;
2024-03-08 18:59:28 +01:00
};
hardware.nvidia.prime = {
nvidiaBusId = "PCI:01:00:0";
intelBusId = "PCI:00:02:0";
2023-12-29 16:43:40 +01:00
};
2024-05-01 09:58:21 +02:00
networking.nftables.enable = true;
2024-07-15 11:47:13 +02:00
2024-05-01 09:58:21 +02:00
networking.firewall = {
enable = true;
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};
networking.nat.enable = true;
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
2024-03-08 18:59:28 +01:00
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.enable = true;
2023-12-30 23:39:33 +01:00
environment.systemPackages = with pkgs; [ mixxx ];
2023-09-08 14:36:39 +02:00
time.timeZone = "Europe/Berlin";
2024-04-20 16:13:14 +02:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2024-05-01 09:58:21 +02:00
services.suwayomi-server = {
enable = true;
settings = {
server = {
systemTrayEnabled = true;
2024-07-10 23:02:54 +02:00
extensionRepos = [ "https://raw.githubusercontent.com/keiyoushi/extensions/repo/index.min.json" ];
2024-05-01 09:58:21 +02:00
webUIEnabled = true;
initialOpenInBrowserEnabled = true;
webUIInterface = "browser";
webUIFlavor = "WebUI";
};
};
};
services.freshrss = {
2024-07-15 11:47:13 +02:00
enable = false;
2024-05-01 09:58:21 +02:00
virtualHost = "rss.local";
authType = "none";
baseUrl = "http://rss.local";
};
services.nginx = {
2024-07-15 11:47:13 +02:00
enable = false;
2024-05-01 09:58:21 +02:00
virtualHosts = {
"manga.local" = {
locations."/" = {
proxyPass = "http://localhost:8080/";
};
};
};
};
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
ipv6 = true;
};
services.ivpn.enable = true;
programs.kclock.enable = true;
networking.hosts = {
"192.168.88.251" = [ "wiki.it3" ];
"192.168.88.252" = [ "pi400" ];
2024-07-10 23:02:54 +02:00
"127.0.0.1" = [
"local"
"rss.local"
"manga.local"
];
2024-05-01 09:58:21 +02:00
};
2023-09-08 14:36:39 +02:00
}