nixos-config/hosts/violet/default.nix

77 lines
1.4 KiB
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-07-15 07:44:41 +02:00
{
imports = [
./hardware-configuration.nix
2025-03-20 14:28:57 +01:00
./../../modules/core/default.server.nix
./../../modules/services/violet.nix
# ./backups.nix # disable for now, test first.
2024-07-15 07:44:41 +02:00
];
networking.hostName = "violet";
nixpkgs.config.permittedInsecurePackages = [
"jitsi-meet-1.0.8043"
"olm-3.2.16"
];
2024-07-15 07:44:41 +02:00
time.timeZone = "Europe/Amsterdam";
2024-11-28 11:51:26 +01:00
environment.systemPackages = with pkgs; [
2025-08-19 15:14:04 +02:00
kitty.terminfo
cifs-utils
2024-11-28 11:51:26 +01:00
];
services = {
smartd = {
enable = lib.mkForce false;
autodetect = lib.mkForce false;
};
xserver.videoDrivers = [ "nvidia" ];
2025-01-08 18:33:25 +01:00
};
networking.firewall = {
allowedTCPPorts = [
80
443
25565
2025-08-07 13:33:58 +02:00
5201
];
allowedUDPPorts = [
5201
];
};
liv.nvidia.enable = true;
2024-07-15 07:44:41 +02:00
boot = {
loader.grub = {
enable = true;
device = "/dev/sda";
useOSProber = true;
};
kernelModules = [ "acpi_call" ];
extraModulePackages =
with config.boot.kernelPackages;
2024-07-15 07:44:41 +02:00
[
acpi_call
cpupower
]
++ [ pkgs.cpupower-gui ];
2024-07-15 07:44:41 +02:00
};
2025-08-19 15:14:04 +02:00
fileSystems."/mnt/nfs/violet" = {
device = "//172.16.10.130/spinners/violet"; # not ideal, should get the static IP from dandelion from a config attribute but whatever...
fsType = "cifs";
options = [
"x-systemd.automount"
"noauto"
"credentials=${config.sops.secrets.smbLoginDetails.path}"
];
};
2024-07-15 07:44:41 +02:00
}