nixos_config/hosts/nuc/configuration.nix

66 lines
1.5 KiB
Nix
Raw Normal View History

2025-12-09 16:34:37 +01:00
{ config, pkgs, lib, ... }:
{
2026-01-27 15:44:52 +01:00
environment.systemPackages = with pkgs; [
wakeonlan
];
2025-12-09 16:34:37 +01:00
security.sudo.wheelNeedsPassword = false;
imports =
[ ./hardware-configuration.nix ];
2026-02-01 21:30:23 +01:00
networking.hostName = "nuc";
2025-12-09 16:34:37 +01:00
boot.initrd.enable = true;
boot.loader = {
systemd-boot = {
enable = true;
}; # end loader.systemd-boot
2025-12-10 21:43:34 +01:00
}; # end boot
virtualisation = {
oci-containers = {
containers = {
}; # end containers
}; # end oci-containers
}; # end virtualisation
networking.firewall.allowedTCPPorts = [
53
80
443
];
networking.firewall.allowedUDPPorts = [
53
];
2026-01-30 18:56:08 +01:00
systemd = {
timers = {
"autowin" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "Wed *-*-21..28 02:00:00";
Unit = "autowin.service";
};
};
}; # end timers
services = {
"autowin" = {
script = ''
${pkgs.python3Packages.python}/bin/python /home/alisceon/.nixos_config/util/wol_man.py autowin
'';
serviceConfig = {
Type = "oneshot";
TimeoutStartSec = "3600";
User = "alisceon";
};
}; # end "hello-world"
}; # end services
2026-02-03 21:00:27 +01:00
virtualisation.oci-containers.containers = {
isponsorblocktv = {
image = "ghcr.io/dmunozv04/isponsorblocktv:latest";
autoStart = true;
volumes = [
"/home/alisceon/isponsorblocktv:/app/data"
];
}; # end isponsorblocktv
};
2026-01-30 18:56:08 +01:00
}; # end systemd
2025-12-09 16:34:37 +01:00
} # end file