Integrated box host

This commit is contained in:
2025-10-02 13:56:28 +03:00
parent 82a4fa9169
commit db42fd7021
13 changed files with 394 additions and 5 deletions

View File

@@ -4,6 +4,10 @@
...
}: {
networking.networkmanager.enable = true;
networking.networkmanager.dns = "none";
networking.nameservers = ["192.168.0.101" "9.9.9.11" "149.112.112.11"];
time.timeZone = "Europe/Bucharest";
i18n.defaultLocale = "en_US.UTF-8";

11
modules/raspberrypi.nix Normal file
View File

@@ -0,0 +1,11 @@
{
config,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypi-eeprom
docker-compose
];
}

View File

@@ -0,0 +1,26 @@
{
config,
pkgs,
...
}: {
systemd.timers."kondo" = {
wantedBy = ["timers.target"];
timerConfig = {
#OnBootSec = "5m";
#OnUnitActiveSec = "5m";
Unit = "kondo.service";
OnCalendar = "weekly";
Persistent = true;
};
};
systemd.services."kondo" = {
script = ''
kondo --all --ignored-dirs dev/current
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
}