mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:36:33 +01:00
116 lines
2.3 KiB
Nix
116 lines
2.3 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
nixos-hardware,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
#nixos-hardware.nixosModules.common-gpu-nvidia
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
nixos-hardware.nixosModules.common-pc-laptop-hdd
|
|
];
|
|
|
|
facter.reportPath = ./facter.json;
|
|
|
|
jopejoe1 = {
|
|
audio = {
|
|
enable = true;
|
|
};
|
|
local.enable = true;
|
|
nix.enable = true;
|
|
plasma.enable = true;
|
|
user = {
|
|
jopejoe1.enable = true;
|
|
root.enable = true;
|
|
};
|
|
printing.enable = true;
|
|
ssh.enable = true;
|
|
keyboard = {
|
|
enable = true;
|
|
layout = "de";
|
|
};
|
|
gui.enable = true;
|
|
zerotierone.enable = true;
|
|
};
|
|
|
|
hardware.nvidia.prime = {
|
|
nvidiaBusId = "PCI:01:00:0";
|
|
intelBusId = "PCI:00:02:0";
|
|
};
|
|
|
|
networking.nftables.enable = true;
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 53 ];
|
|
allowedUDPPorts = [ 53 ];
|
|
};
|
|
|
|
networking.nat.enable = true;
|
|
|
|
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
boot.loader.grub.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [ mixxx ];
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
services.suwayomi-server = {
|
|
enable = true;
|
|
settings = {
|
|
server = {
|
|
systemTrayEnabled = true;
|
|
extensionRepos = [ "https://raw.githubusercontent.com/keiyoushi/extensions/repo/index.min.json" ];
|
|
webUIEnabled = true;
|
|
initialOpenInBrowserEnabled = true;
|
|
webUIInterface = "browser";
|
|
webUIFlavor = "WebUI";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.freshrss = {
|
|
enable = false;
|
|
virtualHost = "rss.local";
|
|
authType = "none";
|
|
baseUrl = "http://rss.local";
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = false;
|
|
virtualHosts = {
|
|
"manga.local" = {
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:8080/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
nssmdns6 = true;
|
|
ipv6 = true;
|
|
};
|
|
|
|
programs.kclock.enable = true;
|
|
|
|
networking.hosts = {
|
|
"192.168.88.251" = [ "wiki.it3" ];
|
|
"192.168.88.252" = [ "pi400" ];
|
|
"127.0.0.1" = [
|
|
"local"
|
|
"rss.local"
|
|
"manga.local"
|
|
];
|
|
};
|
|
}
|